public class JsonRequestReaderManagedObjectSource extends AbstractManagedObjectSource<JsonRequestReaderManagedObjectSource.Dependencies,None>
ManagedObjectSource
to read the JSON HttpRequest
pay load
onto a Java Object graph. The top level Java Object is provided as the object
from the ManagedObject
.Modifier and Type | Class and Description |
---|---|
static class |
JsonRequestReaderManagedObjectSource.Dependencies
Dependency keys.
|
AbstractAsyncManagedObjectSource.DependencyLabeller, AbstractAsyncManagedObjectSource.Labeller, AbstractAsyncManagedObjectSource.MetaDataContext<D extends Enum<D>,F extends Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_BIND_NAME
|
static String |
PROPERTY_JSON_OBJECT_CLASS
|
Constructor and Description |
---|
JsonRequestReaderManagedObjectSource() |
Modifier and Type | Method and Description |
---|---|
protected ManagedObject |
getManagedObject()
Synchronously obtains the
ManagedObject . |
protected void |
loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<JsonRequestReaderManagedObjectSource.Dependencies,None> context)
Overridden to load meta-data.
|
protected void |
loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Overridden to load specifications.
|
void |
start(ManagedObjectExecuteContext<None> context)
Called once after
ManagedObjectSource.init(ManagedObjectSourceContext) to indicate
this ManagedObjectSource should start execution. |
sourceManagedObject
getMetaData, getSpecification, init, stop
public static final String PROPERTY_JSON_OBJECT_CLASS
public static final String PROPERTY_BIND_NAME
public JsonRequestReaderManagedObjectSource()
protected void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
AbstractAsyncManagedObjectSource
loadSpecification
in class AbstractAsyncManagedObjectSource<JsonRequestReaderManagedObjectSource.Dependencies,None>
context
- Specifications.protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<JsonRequestReaderManagedObjectSource.Dependencies,None> context) throws Exception
AbstractAsyncManagedObjectSource
loadMetaData
in class AbstractAsyncManagedObjectSource<JsonRequestReaderManagedObjectSource.Dependencies,None>
context
- Meta-data.Exception
- If fails to load the meta-data.public void start(ManagedObjectExecuteContext<None> context) throws Exception
ManagedObjectSource
Called once after ManagedObjectSource.init(ManagedObjectSourceContext)
to indicate
this ManagedObjectSource
should start execution.
On invocation of this method, ProcessState
instances may be
invoked via the ManagedObjectExecuteContext
.
start
in interface ManagedObjectSource<JsonRequestReaderManagedObjectSource.Dependencies,None>
start
in class AbstractAsyncManagedObjectSource<JsonRequestReaderManagedObjectSource.Dependencies,None>
context
- ManagedObjectExecuteContext
to use in starting this
ManagedObjectSource
.Exception
- Should the ManagedObjectSource
fail to start
execution.protected ManagedObject getManagedObject() throws Throwable
AbstractManagedObjectSource
ManagedObject
.getManagedObject
in class AbstractManagedObjectSource<JsonRequestReaderManagedObjectSource.Dependencies,None>
ManagedObject
.Throwable
- If fails to obtain the ManagedObject
.Copyright © 2005–2016. All rights reserved.