Yes, but a missing DESCRIBED dependency should not stop the context
moving to the new PRE_INSTALL state.
By default most dependencies are required at INSTANTIATED,
see AbstractKernelControllerContext
| protected abstract class AbstractMetaDataVistor implements MetaDataVisitor,
PrivilegedAction<Object>
| {
| /**
| * The current context for when the dependencies are required
| */
| protected ControllerState contextState = ControllerState.INSTANTIATED;
|
Parts of the tree override the "whenRequired" to be later,
e.g. property injections are required at CONFIGURED.
The only problematic one I can see is the ClassLoader,
which is currently required at DESCRIBED.
This should be moved to the PRE_INSTALLED since we need the classloader
to get the class, to get the annotations.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016372#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...