|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.inject.AbstractModule
org.opt4j.core.start.Opt4JModule
public abstract class Opt4JModule
The Opt4JModule is the superclass for all modules.
| Field Summary | |
|---|---|
static com.google.inject.Scope |
SINGLETON
The singleton scope. |
| Constructor Summary | |
|---|---|
Opt4JModule()
|
|
| Method Summary | |
|---|---|
void |
addControlListener(java.lang.Class<? extends ControlListener> listener)
Adds an ControlListener. |
void |
addIndividualStateListener(java.lang.Class<? extends IndividualStateListener> listener)
Adds an IndividualStateListener. |
void |
addOptimizerIterationListener(java.lang.Class<? extends OptimizerIterationListener> listener)
Adds an OptimizerIterationListener. |
void |
addOptimizerStateListener(java.lang.Class<? extends OptimizerStateListener> listener)
Adds an OptimizerStateListener. |
protected com.google.inject.binder.ConstantBindingBuilder |
bindConstant(java.lang.annotation.Annotation annotation)
Bind a value. |
protected com.google.inject.binder.ConstantBindingBuilder |
bindConstant(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Bind a value. |
protected com.google.inject.binder.ConstantBindingBuilder |
bindConstant(java.lang.String value)
Bind a Constant. |
protected com.google.inject.binder.ConstantBindingBuilder |
bindConstant(java.lang.String value,
java.lang.Class<?> namespace)
Bind a constant. |
protected abstract void |
config()
Configure the module. |
protected void |
configure()
|
static org.opt4j.core.start.Opt4JModule.ConstantImpl |
constant(java.lang.String value,
java.lang.Class<?> namespace)
Returns the implementation of the Constant annotation. |
protected void |
multi(java.lang.Class<?> clazz)
|
| Methods inherited from class com.google.inject.AbstractModule |
|---|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static com.google.inject.Scope SINGLETON
| Constructor Detail |
|---|
public Opt4JModule()
| Method Detail |
|---|
protected com.google.inject.binder.ConstantBindingBuilder bindConstant(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
annotation - the type of annotation of the value
protected com.google.inject.binder.ConstantBindingBuilder bindConstant(java.lang.annotation.Annotation annotation)
annotation - the annotation of the value
protected void configure()
configure in class com.google.inject.AbstractModuleprotected void multi(java.lang.Class<?> clazz)
protected abstract void config()
Binder
public static org.opt4j.core.start.Opt4JModule.ConstantImpl constant(java.lang.String value,
java.lang.Class<?> namespace)
Constant annotation.
value - the valuenamespace - the namespace
protected com.google.inject.binder.ConstantBindingBuilder bindConstant(java.lang.String value)
Constant.
value - the value from the Constant annotation with an empty
namespace
protected com.google.inject.binder.ConstantBindingBuilder bindConstant(java.lang.String value,
java.lang.Class<?> namespace)
value - the value from the Constantnamespace - the namespace from the Constant
public void addOptimizerStateListener(java.lang.Class<? extends OptimizerStateListener> listener)
OptimizerStateListener.
listener - the listener to be addedpublic void addOptimizerIterationListener(java.lang.Class<? extends OptimizerIterationListener> listener)
OptimizerIterationListener.
listener - the listener to be addedpublic void addIndividualStateListener(java.lang.Class<? extends IndividualStateListener> listener)
IndividualStateListener.
listener - the listener to be addedpublic void addControlListener(java.lang.Class<? extends ControlListener> listener)
ControlListener.
listener - the listener to be added
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||