public interface ComponentManagement
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(String name,
Object bean)
Add a component (bean) to the default Jetspeed IoC container
|
boolean |
containsComponent(Object componentName)
Determine if a component exists in the Jetspeed IoC container
|
boolean |
containsComponent(Object containerName,
Object componentName) |
Object |
getComponent(Object componentName)
Deprecated.
in 2.3.0
|
Object |
getComponent(Object containerName,
Object componentName)
Deprecated.
in 2.3.0
|
<T> T |
lookupComponent(Class componentClass)
Lookup a Jetspeed Component in the IOC container, returning an automatically casted instance of
the component service
|
<T> T |
lookupComponent(String componentName)
Lookup a Jetspeed Component in the IOC container, returning an automatically casted instance of
the component service
|
<T> T lookupComponent(String componentName)
T - the return type of the interface of the componentcomponentName - the name of the component (bean) to lookup<T> T lookupComponent(Class componentClass)
T - the return type of the interface of the componentcomponentClass - the class of the component (bean) singleton to lookupboolean containsComponent(Object componentName)
componentName - the name of the component to lookupObject getComponent(Object componentName)
lookupComponent(String)componentName - can be either a String or a #@java.lang.Class If its a Class,
the component name must match the toString representation of that classgetComponent(java.lang.Object),
ComponentManager#lookupComponent(String)} or
{@link ComponentManager#lookupComponent(Class)}Object getComponent(Object containerName, Object componentName)
lookupComponent(String)containerName - the name of the IoC container to lookup the component incomponentName - can be either a String or a #@java.lang.Class If its a Class,
the component name must match the toString representation of that classgetComponent(java.lang.Object),
ComponentManager#lookupComponent(String)} or
{@link ComponentManager#lookupComponent(Class)}Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.