public abstract class AbstractEngine extends Proxied.Abstract implements Engine
Proxied.Abstract
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BEHAVIOR_PARAM
Specifies the default behavior.
|
BINDING_PARAM, ENGINE_EXECUTOR_PARAM, LOOP_LIMIT_PARAM, MACRO_PARAM, MODULE_PARAM, NAME_PARAM, PASSWORD_PARAM, SECURITY_PARAM, USER_PARAM, WORD_PARAM
Constructor and Description |
---|
AbstractEngine() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this engine.
|
protected Optional<ClassDef> |
defaultBehavior()
Returns the engine specific default behavior.
|
protected Optional<BehaviorEntity> |
getDefaultBehavior(Class<?> behaviorClass)
Gets a default behavior entity wrapping the specified class.
|
Optional<BehaviorEntity> |
getDefaultBehavior(PointRelation relation)
Gets the default (primary) behavior.
|
boolean |
setUp(Metadata metadata,
ProxyEntity proxyEntity)
Sets up the instance for action.
|
getMetadata, getName, getParams, getProxyEntity, getThisLogger, tearDown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTransform
getName, getParams, getProxyEntity, tearDown
public static final String DEFAULT_BEHAVIOR_PARAM
public Optional<BehaviorEntity> getDefaultBehavior(PointRelation relation)
getDefaultBehavior
in interface Engine
relation
- The relation needing a primary behavior.public boolean setUp(Metadata metadata, ProxyEntity proxyEntity)
setUp
in interface Proxied
setUp
in class Proxied.Abstract
metadata
- The metadata available to the current process.proxyEntity
- The proxy entity refering to the proxied.@Nonnull @CheckReturnValue protected Optional<ClassDef> defaultBehavior()
@Nonnull @CheckReturnValue protected final Optional<BehaviorEntity> getDefaultBehavior(@Nonnull Class<?> behaviorClass)
If this is the first time that the class has been requested, an instance will be created.
behaviorClass
- The wrapped class of the requested behavior entity.
Must implement Behavior
.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.