|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.batch.bootstrap.Module
public abstract class Module
Module describes group of components - configure()
.
Several modules can be grouped together - install(Module)
, installChild(Module)
.
Constructor Summary | |
---|---|
Module()
|
Method Summary | ||
---|---|---|
protected void |
addAdapter(org.picocontainer.ComponentAdapter<?> componentAdapter)
|
|
protected void |
addCoreSingleton(Object component)
|
|
protected void |
addExtension(PluginMetadata plugin,
Object extension)
|
|
protected abstract void |
configure()
Implementation of this method must not contain conditional logic and just should contain several invocations of addCoreSingleton(Object) , addExtension(org.sonar.api.platform.PluginMetadata, Object) or addAdapter(ComponentAdapter) . |
|
protected void |
declareExtension(PluginMetadata plugin,
Object extension)
|
|
protected void |
doStart()
|
|
protected void |
doStop()
|
|
Object |
getComponentByKey(Object key)
|
|
|
getComponentByType(Class<T> componentType)
|
|
|
getComponents(Class<T> componentType)
|
|
Module |
init()
|
|
Module |
install(Module module)
Installs module into this module. |
|
Module |
installChild(Module child)
Installs module into new scope - see http://picocontainer.org/scopes.html |
|
Module |
start()
|
|
Module |
stop()
|
|
void |
uninstallChild()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Module()
Method Detail |
---|
public final Module init()
public final Module install(Module module)
public final Module installChild(Module child)
public final void uninstallChild()
public final Module start()
protected void doStart()
public final Module stop()
protected void doStop()
protected abstract void configure()
addCoreSingleton(Object)
, addExtension(org.sonar.api.platform.PluginMetadata, Object)
or addAdapter(ComponentAdapter)
.
protected final void addCoreSingleton(Object component)
protected final void declareExtension(PluginMetadata plugin, Object extension)
protected final void addExtension(PluginMetadata plugin, Object extension)
protected final void addAdapter(org.picocontainer.ComponentAdapter<?> componentAdapter)
public final <T> T getComponentByType(Class<T> componentType)
public final Object getComponentByKey(Object key)
public final <T> List<T> getComponents(Class<T> componentType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |