[jboss-dev] Optional @Inject

Ales Justin ales.justin at gmail.com
Wed Feb 17 11:54:25 EST 2010


What kind of NPE?

On Feb 17, 2010, at 5:15 PM, Rémy Maucherat wrote:

> Hi,
> 
> In AbstractWarDeployer, there is a @Inject annotation on the
> setPersistenceUnitDependencyResolver method which creates a hard
> dependency on JPA. Trying to loosen that dependency without making big
> changes, I changed it to @Inject (option=InjectOption.OPTIONAL). This
> does work to some extent (the dependency is now indeed optional), but
> it causes a NPE on shutdown.
> 
> Any ideas ?
> 
> Rémy
> <NPE.txt>_______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development





More information about the jboss-development mailing list