| java.lang.Object com.caucho.webbeans.manager.WebBeansContainer
Inner Class :static class FactoryBinding | |
Method Summary | |
public void | addComponent(ComponentImpl comp) | public void | addComponentByName(String name, ComponentImpl comp) | public void | addComponentByType(Type type, ComponentImpl comp) | public void | addContext(Class<Annotation> scopeType, Context context) | public void | addEnabledInterceptor(Class cl) | public void | addObserver(ObserverImpl observer) | public void | addSingleton(Object object) | public void | addSingleton(Object object, String name) | public void | addSingleton(Object object, String name, Class componentType) | public void | addSingletonByName(Object object, String name) | public ComponentImpl | bind(String location, Type type, String name) | public ComponentImpl | bind(String location, Type type) Returns the web beans component corresponding to the return type. | public ComponentImpl | bind(String location, Type type, Annotation[] paramAnn) Returns the web beans component corresponding to a method
parameter. | public ComponentImpl | bind(String location, Type type, ArrayList<Annotation> bindingList) Returns the web beans component with a given binding list. | public void | bind() | public ComponentImpl | bindByBindings(String location, Type type, ArrayList<Binding> bindingList) Returns the web beans component with a given binding list. | public void | classMatchEvent(EnvironmentClassLoader loader, Path root, String className) | public static WebBeansContainer | create() Returns the current active container. | public static WebBeansContainer | create(ClassLoader loader) Returns the current active container. | public WbComponentType | createComponentType(Class cl) | public Conversation | createConversation() | public T | createFactory(Class<T> type, String name) Returns a new instance for a class, but does not register the
component with webbeans. | public ComponentFactory | createFactory(Class type, Annotation... ann) Returns a new instance for a class, but does not register the
component with webbeans. | public void | createProgram(ArrayList<ConfigProgram> injectList, Field field) | public void | createProgram(ArrayList<ConfigProgram> injectList, Method method) | public ComponentFactory<T> | createTransient(Class<T> type) Returns a ComponentFactory for a class, but does not register the
component with webbeans. | public void | environmentConfig(EnvironmentClassLoader loader) | public void | environmentStart(EnvironmentClassLoader loader) Handles the case where the environment is starting (after init). | public void | environmentStop(EnvironmentClassLoader loader) | public static ConfigException | error(Method method, String msg) | public ComponentImpl | findByName(String name) Finds a component by its component name. | public ArrayList<Class> | findInterceptors(ArrayList<Annotation> annList) | public ClassLoader | getClassLoader() | public Context | getContext(Class<Annotation> scopeType) | public static WebBeansContainer | getCurrent() Returns the local container. | public static WebBeansContainer | getCurrent(ClassLoader loader) Returns the current environment container. | public T | getEnvironmentObject(Class<T> type, Annotation... ann) Returns a new instance for a class, but does not register the
component with webbeans. | public T | getObject(Class<T> type, Annotation... ann) Returns a new instance for a class, but does not register the
component with webbeans. | public T | getObject(Class<T> type, String name) Returns a new instance for a class, but does not register the
component with webbeans. | public Object | getObjectByName(String name) Finds a component by its component name. | public ScopeContext | getScopeContext(Class scope) Returns the scope context corresponding to the scope annotation type. | static String | getSimpleName(Type type) | public WbWebBeans | getWbWebBeans() | public static ConfigException | injectError(AccessibleObject prop, String msg) | public void | injectObject(Object obj) | public boolean | isRootScannable(Path root) Returns true if the root is a valid scannable root. | public boolean | isScanMatch(CharBuffer annotationName) | public Class | loadClass(String className) | public static String | location(Field field) | public static String | location(Method method) | public void | raiseEvent(Object event, Annotation... bindings) | public ComponentFactory<T> | resolveByType(Class<T> apiType, Annotation... bindingTypes) | public String | toString() | public void | update() | public Object | writeReplace() |
addComponentByType | public void addComponentByType(Type type, ComponentImpl comp)(Code) | | Adds a component by the interface type
Parameters: type - the interface type to expose the component Parameters: comp - the component to register |
addEnabledInterceptor | public void addEnabledInterceptor(Class cl)(Code) | | |
addSingletonByName | public void addSingletonByName(Object object, String name)(Code) | | Adds a singleton only to the name map
Parameters: object - the singleton value Parameters: name - the singleton's name |
bind | public void bind()(Code) | | Starts the bind phase
|
createConversation | public Conversation createConversation()(Code) | | |
createFactory | public T createFactory(Class<T> type, String name)(Code) | | Returns a new instance for a class, but does not register the
component with webbeans.
|
createFactory | public ComponentFactory createFactory(Class type, Annotation... ann)(Code) | | Returns a new instance for a class, but does not register the
component with webbeans.
|
createProgram | public void createProgram(ArrayList<ConfigProgram> injectList, Field field) throws ConfigException(Code) | | Creates an injection program for the given field
|
createTransient | public ComponentFactory<T> createTransient(Class<T> type)(Code) | | Returns a ComponentFactory for a class, but does not register the
component with webbeans.
|
environmentStart | public void environmentStart(EnvironmentClassLoader loader)(Code) | | Handles the case where the environment is starting (after init).
|
getEnvironmentObject | public T getEnvironmentObject(Class<T> type, Annotation... ann)(Code) | | Returns a new instance for a class, but does not register the
component with webbeans.
|
getObject | public T getObject(Class<T> type, Annotation... ann)(Code) | | Returns a new instance for a class, but does not register the
component with webbeans.
|
getObject | public T getObject(Class<T> type, String name)(Code) | | Returns a new instance for a class, but does not register the
component with webbeans.
|
getObjectByName | public Object getObjectByName(String name)(Code) | | Finds a component by its component name.
|
getScopeContext | public ScopeContext getScopeContext(Class scope)(Code) | | Returns the scope context corresponding to the scope annotation type.
Parameters: scope - the scope annotation type identifying the scope |
injectObject | public void injectObject(Object obj)(Code) | | Injects an object
|
isRootScannable | public boolean isRootScannable(Path root)(Code) | | Returns true if the root is a valid scannable root.
|
isScanMatch | public boolean isScanMatch(CharBuffer annotationName)(Code) | | |
raiseEvent | public void raiseEvent(Object event, Annotation... bindings)(Code) | | Sends the specified event to any observer instances in the scope
|
resolveByType | public ComponentFactory<T> resolveByType(Class<T> apiType, Annotation... bindingTypes)(Code) | | Returns the component which matches the apiType and binding types
|
update | public void update()(Code) | | |
writeReplace | public Object writeReplace()(Code) | | Serialization rewriting
|
|
|