Package jadex.bridge.component.impl
Class PropertiesComponentFeature
- java.lang.Object
-
- jadex.bridge.component.impl.AbstractComponentFeature
-
- jadex.bridge.component.impl.PropertiesComponentFeature
-
- All Implemented Interfaces:
IComponentFeature
,IPropertiesFeature
public class PropertiesComponentFeature extends AbstractComponentFeature implements IPropertiesFeature
This feature provides arguments.
-
-
Field Summary
Fields Modifier and Type Field Description static IComponentFeatureFactory
FACTORY
The factory.protected java.util.Map<java.lang.String,java.lang.Object>
properties
The properties.-
Fields inherited from class jadex.bridge.component.impl.AbstractComponentFeature
cinfo, component, guesser
-
-
Constructor Summary
Constructors Constructor Description PropertiesComponentFeature(IInternalAccess component, ComponentCreationInfo cinfo)
Create the feature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getProperty(java.lang.String name)
Get a property value.boolean
hasUserBody()
Check if the feature potentially executed user code in body.jadex.commons.future.IFuture<java.lang.Void>
init()
Initialize the feature.-
Methods inherited from class jadex.bridge.component.impl.AbstractComponentFeature
body, getClockService, getComponent, getExecutionService, getExternalFacade, getExternalFacadeType, getInternalAccess, getParameterGuesser, getValueFetcher, kill, shutdown
-
-
-
-
Field Detail
-
FACTORY
public static final IComponentFeatureFactory FACTORY
The factory.
-
properties
protected java.util.Map<java.lang.String,java.lang.Object> properties
The properties.
-
-
Constructor Detail
-
PropertiesComponentFeature
public PropertiesComponentFeature(IInternalAccess component, ComponentCreationInfo cinfo)
Create the feature.
-
-
Method Detail
-
init
public jadex.commons.future.IFuture<java.lang.Void> init()
Initialize the feature.- Specified by:
init
in interfaceIComponentFeature
- Overrides:
init
in classAbstractComponentFeature
-
hasUserBody
public 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. ;-)- Specified by:
hasUserBody
in interfaceIComponentFeature
- Overrides:
hasUserBody
in classAbstractComponentFeature
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
Get a property value.- Specified by:
getProperty
in interfaceIPropertiesFeature
- Parameters:
name
- The property name.- Returns:
- The property value (if any).
-
-