|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.core.module.AbstractModule
public abstract class AbstractModule
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
LOGGER
logger definition |
| Constructor Summary | |
|---|---|
AbstractModule(java.lang.String name)
|
|
| Method Summary | ||
|---|---|---|
static
|
delayedFuture(java.util.concurrent.Callable<T> caller,
java.util.concurrent.Executor executor)
create a future task and execute it on the exector |
|
void |
dispose()
release any resources. |
|
java.util.concurrent.Executor |
getExecutor()
default executor INLINE_EXECUTOR is used |
|
IModel |
getModel()
return the model this module is installed into |
|
java.lang.String |
getName()
the name of the module |
|
static
|
immediateFuture(java.util.concurrent.Callable<T> caller)
create a future task and execute it immediately using the INLINE_EXECUTOR |
|
static
|
immediateReturn(T value)
|
|
abstract void |
initialize()
this will be called after all the modules have been installed permitting the module to attach listeners to other modules. |
|
void |
install(IModel model)
called from the model during IModel.install(IModule). |
|
void |
uninstall(IModel model)
remove the element from this model. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jactr.core.module.IModule |
|---|
reset |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOGGER
| Constructor Detail |
|---|
public AbstractModule(java.lang.String name)
| Method Detail |
|---|
public java.util.concurrent.Executor getExecutor()
public void dispose()
IModule
dispose in interface IModulepublic IModel getModel()
IModule
getModel in interface IModulepublic java.lang.String getName()
IModule
getName in interface IModulepublic void install(IModel model)
IModule
install in interface IModuleinstall in interface IInstallableIInstallable.install(org.jactr.core.model.IModel)public void uninstall(IModel model)
IInstallable
uninstall in interface IInstallablepublic abstract void initialize()
IModule
initialize in interface IModuleinitialize in interface IInitializablepublic static <T> java.util.concurrent.Future<T> immediateReturn(T value)
public static <T> java.util.concurrent.Future<T> immediateFuture(java.util.concurrent.Callable<T> caller)
T - caller -
public static <T> java.util.concurrent.Future<T> delayedFuture(java.util.concurrent.Callable<T> caller,
java.util.concurrent.Executor executor)
T - caller - executor -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||