Package adams.flow.dropwizard
Class AbstractRESTPluginWithFlowContext
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.dropwizard.AbstractRESTPlugin
-
- adams.flow.dropwizard.AbstractRESTPluginWithFlowContext
-
- All Implemented Interfaces:
adams.core.AdditionalInformationHandler,adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.SizeOfHandler,adams.flow.core.FlowContextHandler,RESTPlugin,Serializable
- Direct Known Subclasses:
AbstractRESTPluginWithDatabaseConnection
public abstract class AbstractRESTPluginWithFlowContext extends AbstractRESTPlugin implements adams.flow.core.FlowContextHandler
Ancestor for REST plugins that require a flow context.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.flow.core.Actorm_FlowContextthe flow context.
-
Constructor Summary
Constructors Constructor Description AbstractRESTPluginWithFlowContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description adams.flow.core.ActorgetFlowContext()Returns the flow context, if any.voidsetFlowContext(adams.flow.core.Actor value)Sets the flow context.-
Methods inherited from class adams.flow.dropwizard.AbstractRESTPlugin
getAdditionalInformation
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
setFlowContext
public void setFlowContext(adams.flow.core.Actor value)
Sets the flow context.- Specified by:
setFlowContextin interfaceadams.flow.core.FlowContextHandler- Parameters:
value- the actor
-
getFlowContext
public adams.flow.core.Actor getFlowContext()
Returns the flow context, if any.- Specified by:
getFlowContextin interfaceadams.flow.core.FlowContextHandler- Returns:
- the actor, null if none available
-
-