public class ObjectFactory extends InitializeObject
mutex| Constructor and Description |
|---|
ObjectFactory() |
assertNotInitialized, initializeprotected void init()
throws Exception
init in class InitializeObjectExceptionpublic ObjectFactory register(Class<?> type, ObjectProducer<?> producer)
public ObjectFactory register(Class<?> type, ObjectProducer<?> producer, ObjectScope scope)
public ObjectFactory register(Class<?> type, ObjectProducer<?> producer, ObjectScope scope, Annotation[] qualifiers)
public ObjectFactory register(Class<?>[] types, ObjectProducer<?> producer)
public ObjectFactory register(Class<?>[] types, ObjectProducer<?> producer, ObjectScope scope)
protected ObjectFactory register(Class<?>[] types, ObjectProducer<?> producer, ObjectScope scope, Annotation[] qualifiers)
public ObjectFactory register(Class<?> type, Class<?> implClass)
public ObjectFactory register(Class<?> type, Class<?> implClass, ObjectScope scope)
public ObjectFactory register(Class<?> type, Class<?> implClass, ObjectScope scope, Annotation[] qualifiers)
public ObjectFactory register(Class<?>[] types, Class<?> implClass)
public ObjectFactory register(Class<?>[] types, Class<?> implClass, ObjectScope scope)
protected ObjectFactory register(Class<?>[] types, Class<?> implClass, ObjectScope scope, Annotation[] qualifiers)
public ObjectFactory unregister(Class<?> type)
public ObjectFactory unregister(Class<?> type, Annotation... qualifiers)
public <T> ObjectFactory unregister(Class<T> type, Class<? extends T> implClass)
public <T> javax.enterprise.inject.Instance<T> select(Class<T> subtype, Annotation... qualifiers) throws ObjectException
ObjectExceptionpublic ObjectFactory inject(Object obj) throws ObjectException
ObjectExceptionpublic <T,I extends T> I getObject(Class<T> type) throws ObjectException
ObjectExceptionpublic <T,I extends T> I getObject(Class<T> type, Annotation... qualifiers) throws ObjectException
ObjectExceptionpublic <T> T postConstruct(T obj)
throws ObjectException
ObjectExceptionpublic <T> T preDestroy(T obj)
throws ObjectException
ObjectExceptionpublic void destroy()
throws ObjectException
destroy in interface InitializeSupportdestroy in class InitializeObjectObjectExceptionpublic Iterator<ObjectDefinition> getDefinitionIterator()
Copyright © 2021. All rights reserved.