public abstract class AbstractComponentFeature extends java.lang.Object implements IComponentFeature
Modifier and Type | Field and Description |
---|---|
protected ComponentCreationInfo |
cinfo
The creation info.
|
protected IInternalAccess |
component
The component.
|
protected jadex.commons.IParameterGuesser |
guesser
The parameter guesser.
|
Modifier | Constructor and Description |
---|---|
|
AbstractComponentFeature()
Bean constructor for type level.
|
protected |
AbstractComponentFeature(IInternalAccess component,
ComponentCreationInfo cinfo)
Factory method constructor for instance level.
|
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<java.lang.Void> |
body()
Execute the main activity of the feature.
|
IInternalAccess |
getComponent()
Get the component access.
|
<T> T |
getExternalFacade(java.lang.Object context)
Get external feature facade.
|
<T> java.lang.Class<T> |
getExternalFacadeType(java.lang.Object context) |
jadex.commons.IParameterGuesser |
getParameterGuesser()
The feature can add objects for field or method injections
by providing an optional parameter guesser.
|
jadex.commons.IValueFetcher |
getValueFetcher()
The feature can inject parameters for expression evaluation
by providing an optional value fetcher.
|
jadex.commons.future.IFuture<java.lang.Void> |
init()
Initialize the feature.
|
void |
kill()
Kill is only invoked, when shutdown of some (e.g.
|
jadex.commons.future.IFuture<java.lang.Void> |
shutdown()
Shutdown the feature.
|
protected IInternalAccess component
protected ComponentCreationInfo cinfo
protected jadex.commons.IParameterGuesser guesser
public AbstractComponentFeature()
protected AbstractComponentFeature(IInternalAccess component, ComponentCreationInfo cinfo)
public IInternalAccess getComponent()
public jadex.commons.future.IFuture<java.lang.Void> init()
init
in interface IComponentFeature
public jadex.commons.future.IFuture<java.lang.Void> body()
body
in interface IComponentFeature
public jadex.commons.future.IFuture<java.lang.Void> shutdown()
shutdown
in interface IComponentFeature
public void kill()
kill
in interface IComponentFeature
public <T> T getExternalFacade(java.lang.Object context)
public <T> java.lang.Class<T> getExternalFacadeType(java.lang.Object context)
public jadex.commons.IValueFetcher getValueFetcher()
getValueFetcher
in interface IComponentFeature
public jadex.commons.IParameterGuesser getParameterGuesser()
getParameterGuesser
in interface IComponentFeature