Package jadex.bridge.component
Interface IComponentFeature
-
- All Known Implementing Classes:
jadex.bridge.component.impl.AbstractComponentFeature
,jadex.bridge.component.impl.ArgumentsResultsComponentFeature
,BDIXAgentFeature
,BDIXArgumentsResultsComponentFeature
,BDIXLifecycleAgentFeature
,BDIXMessageComponentFeature
,jadex.bridge.component.impl.ComponentLifecycleFeature
,jadex.bridge.component.impl.MessageComponentFeature
,jadex.micro.features.impl.MicroMessageComponentFeature
,ProvidedServicesComponentFeature
,RelayMessageComponentFeature
,RequiredServicesComponentFeature
public interface IComponentFeature
A component feature is a pluggable part of the state and behavior of a component. This interface represents the internal view of the instance level of a feature.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IFuture<java.lang.Void>
body()
Execute the main activity of the feature.IParameterGuesser
getParameterGuesser()
The feature can add objects for field or method injections by providing an optional parameter guesser.IValueFetcher
getValueFetcher()
The feature can inject parameters for expression evaluation by providing an optional value fetcher.boolean
hasUserBody()
Check if the feature potentially executed user code in body.IFuture<java.lang.Void>
init()
Initialize the feature.void
kill()
Kill is only invoked, when shutdown does not return due to timeout.IFuture<java.lang.Void>
shutdown()
Shutdown the feature.
-
-
-
Method Detail
-
init
IFuture<java.lang.Void> init()
Initialize the feature.
-
body
IFuture<java.lang.Void> body()
Execute the main activity of the feature.
-
shutdown
IFuture<java.lang.Void> shutdown()
Shutdown the feature.
-
kill
void kill()
Kill is only invoked, when shutdown does not return due to timeout. The feature should do any kind of possible cleanup, but no asynchronous operations.
-
getValueFetcher
IValueFetcher getValueFetcher()
The feature can inject parameters for expression evaluation by providing an optional value fetcher. The fetch order is the reverse init order, i.e., later features can override values from earlier features.
-
getParameterGuesser
IParameterGuesser getParameterGuesser()
The feature can add objects for field or method injections by providing an optional parameter guesser. The selection order is the reverse init order, i.e., later features can override values from earlier features.
-
hasUserBody
boolean hasUserBody()
Check if the feature potentially executed user code in body. Allows blocking operations in user bodies by using separate steps for each feature. Non-user-body-features are directly executed for speed. If unsure just return true. ;-)
-
-