/** * Create a node instantiator without a lifecycle manager. * @return A node instantiator that does not support lifecycle management. */ public static NodeInstantiator create() { return new DefaultImpl(null); }
/** * Create a node instantiator with a lifecycle manager. * @param mgr The lifecycle manager to use. * @return A node instantiator that will register components with a lifecycle manager. */ public static NodeInstantiator create(@WillNotClose LifecycleManager mgr) { return new DefaultImpl(mgr); }
/** * Create a node instantiator with a lifecycle manager. * @param mgr The lifecycle manager to use. * @return A node instantiator that will register components with a lifecycle manager. */ public static NodeInstantiator create(@WillNotClose LifecycleManager mgr) { return new DefaultImpl(mgr); }
/** * Create a node instantiator without a lifecycle manager. * @return A node instantiator that does not support lifecycle management. */ public static NodeInstantiator create() { return new DefaultImpl(null); }