|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CustomNodeWrapper
This interface represents a Node which will provide an adapter
for instances of CustomNode
, bridging the gap between
a backend specific Node
implementation, such as
HibNode
or MemNode
, and the backend agnostic
CustomNode
.
Method Summary | ||
---|---|---|
GuardResult |
defaultGuard(Engine engine,
NodeToken token)
Evaluates the guard using the default strategy for the given Node/Engine combination. |
|
CustomNode |
getCustomNode(Engine engine)
Returns the CustomNode being wrapped. |
|
|
getDefaultAdaptor(Class<T> clazz)
Returns the default adapter for the current Engine. |
Methods inherited from interface com.googlecode.sarasvati.Node |
---|
backtrack, execute, getExternal, getExternalEnv, getGraph, getGuard, getId, getJoinParam, getJoinStrategy, getJoinType, getName, getOriginatingExternalNode, getType, guard, isBacktrackable, isImportedFromExternal, isStart |
Methods inherited from interface com.googlecode.sarasvati.adapter.Adaptable |
---|
getAdaptor |
Method Detail |
---|
CustomNode getCustomNode(Engine engine)
CustomNode
being wrapped.
engine
- The current engine, which may be required to load the CustomNode
CustomNode
being wrapped.<T> T getDefaultAdaptor(Class<T> clazz)
T
- The adapterclazz
- The adapter type being requested.
GuardResult defaultGuard(Engine engine, NodeToken token)
engine
- The engine executing the current processtoken
- The token which triggered the guard evaluation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |