for ( LifecycleListener listener : manager.getListeners() ) {
listener.objectInjected(type, obj);
}
Class<?> clazz = obj.getClass();
LifecycleMethods methods = getLifecycleMethods(clazz);
if ( warmUpIsInDag(clazz, type) ) {
addDependencies(manager, obj, type, methods);
}
if ( methods.hasLifecycleAnnotations() ) {
try {
manager.add(obj, methods);
}
catch ( Exception e ) {
throw new Error(e);