|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.platform.ComponentContainer
public class ComponentContainer
Constructor Summary | |
---|---|
|
ComponentContainer()
Create root container |
protected |
ComponentContainer(ComponentContainer parent)
Create child container |
Method Summary | ||
---|---|---|
ComponentContainer |
add(Object... objects)
|
|
ComponentContainer |
addComponent(Object component,
boolean singleton)
|
|
ComponentContainer |
addExtension(PluginMetadata plugin,
Object extension)
|
|
ComponentContainer |
addPicoAdapter(org.picocontainer.ComponentAdapter adapter)
|
|
ComponentContainer |
addSingleton(Object component)
|
|
ComponentContainer |
addSingletons(Collection components)
|
|
ComponentContainer |
createChild()
|
|
void |
declareExtension(PluginMetadata plugin,
Object extension)
|
|
protected void |
doAfterStart()
This method aims to be overridden |
|
protected void |
doBeforeStart()
This method aims to be overridden |
|
void |
execute()
|
|
ComponentContainer |
getChild()
|
|
Object |
getComponentByKey(Object key)
|
|
|
getComponentByType(Class<T> tClass)
|
|
|
getComponentsByType(Class<T> tClass)
|
|
ComponentContainer |
getParent()
|
|
org.picocontainer.MutablePicoContainer |
getPicoContainer()
|
|
ComponentContainer |
removeChild()
|
|
ComponentContainer |
startComponents()
This method MUST NOT be renamed start() because the container is registered itself in picocontainer. |
|
ComponentContainer |
stopComponents()
This method MUST NOT be renamed stop() because the container is registered itself in picocontainer. |
|
ComponentContainer |
stopComponents(boolean swallowException)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentContainer()
protected ComponentContainer(ComponentContainer parent)
Method Detail |
---|
public void execute()
public ComponentContainer startComponents()
protected void doBeforeStart()
protected void doAfterStart()
public ComponentContainer stopComponents()
public ComponentContainer stopComponents(boolean swallowException)
public ComponentContainer add(Object... objects)
public ComponentContainer addSingletons(Collection components)
public ComponentContainer addSingleton(Object component)
public ComponentContainer addComponent(Object component, boolean singleton)
singleton
- return always the same instance if true, else a new instance
is returned each time the component is requestedpublic ComponentContainer addExtension(@Nullable PluginMetadata plugin, Object extension)
public void declareExtension(@Nullable PluginMetadata plugin, Object extension)
public ComponentContainer addPicoAdapter(org.picocontainer.ComponentAdapter adapter)
public <T> T getComponentByType(Class<T> tClass)
public Object getComponentByKey(Object key)
public <T> List<T> getComponentsByType(Class<T> tClass)
public ComponentContainer removeChild()
public ComponentContainer createChild()
public ComponentContainer getParent()
public ComponentContainer getChild()
public org.picocontainer.MutablePicoContainer getPicoContainer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |