Package io.gridgo.core.support.impl
Class AbstractDirectionalComponent
- java.lang.Object
-
- io.gridgo.framework.impl.AbstractComponentLifecycle
-
- io.gridgo.core.support.impl.AbstractDirectionalComponent
-
- All Implemented Interfaces:
ContextAwareComponent
,io.gridgo.framework.ComponentLifecycle
,io.gridgo.framework.NamedComponent
,io.gridgo.utils.helper.Loggable
- Direct Known Subclasses:
AbstractTransformableComponent
public abstract class AbstractDirectionalComponent extends io.gridgo.framework.impl.AbstractComponentLifecycle implements ContextAwareComponent
-
-
Constructor Summary
Constructors Constructor Description AbstractDirectionalComponent(@NonNull java.lang.String source, @NonNull java.lang.String target)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description GridgoContext
getContext()
java.lang.String
getSource()
java.lang.String
getTarget()
protected void
onStart()
void
setContext(GridgoContext context)
protected abstract void
startWithGateways(Gateway source, Gateway target)
-
Methods inherited from class io.gridgo.framework.impl.AbstractComponentLifecycle
generateName, getName, isStarted, onStop, start, stop, toString
-
-
-
-
Method Detail
-
onStart
protected void onStart()
- Specified by:
onStart
in classio.gridgo.framework.impl.AbstractComponentLifecycle
-
getSource
public java.lang.String getSource()
-
getTarget
public java.lang.String getTarget()
-
getContext
public GridgoContext getContext()
-
setContext
public void setContext(GridgoContext context)
- Specified by:
setContext
in interfaceContextAwareComponent
-
-