Package net.officefloor.web.state
Class HttpObjectManagedObjectSource<T>
- java.lang.Object
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<O,F>
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource<HttpObjectManagedObjectSource.HttpObjectDependencies,None>
-
- net.officefloor.web.state.HttpObjectManagedObjectSource<T>
-
- All Implemented Interfaces:
ManagedObjectSource<HttpObjectManagedObjectSource.HttpObjectDependencies,None>
@PrivateSource public class HttpObjectManagedObjectSource<T> extends AbstractManagedObjectSource<HttpObjectManagedObjectSource.HttpObjectDependencies,None>
- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
HttpObjectManagedObjectSource.DefaultHttpObjectParser
Obtains the defaultHttpObjectParserFactory
.static class
HttpObjectManagedObjectSource.HttpObjectDependencies
Dependency keys.-
Nested classes/interfaces inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
AbstractAsyncManagedObjectSource.DependencyLabeller<K extends java.lang.Enum<K>>, AbstractAsyncManagedObjectSource.ExecutionLabeller, AbstractAsyncManagedObjectSource.Labeller<K extends java.lang.Enum<K>>, AbstractAsyncManagedObjectSource.MetaDataContext<O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext
-
-
Constructor Summary
Constructors Constructor Description HttpObjectManagedObjectSource(java.lang.Class<T> objectClass, java.lang.String[] acceptedContentTypes, java.util.List<HttpObjectParserFactory> parserFactories, HttpObjectManagedObjectSource.DefaultHttpObjectParser defaultHttpObjectParser)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ManagedObject
getManagedObject()
Synchronously obtains theManagedObject
.protected void
loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<HttpObjectManagedObjectSource.HttpObjectDependencies,None> context)
Overridden to load meta-data.protected void
loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Overridden to load specifications.-
Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource
sourceManagedObject
-
Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
getSpecification, init, start, stop
-
-
-
-
Constructor Detail
-
HttpObjectManagedObjectSource
public HttpObjectManagedObjectSource(java.lang.Class<T> objectClass, java.lang.String[] acceptedContentTypes, java.util.List<HttpObjectParserFactory> parserFactories, HttpObjectManagedObjectSource.DefaultHttpObjectParser defaultHttpObjectParser)
Instantiate.- Parameters:
objectClass
-Object
Class
.acceptedContentTypes
- Acceptedcontent-type
values.parserFactories
-List
ofHttpObjectParserFactory
instances that are loaded by theWebArchitect
.defaultHttpObjectParser
-HttpObjectManagedObjectSource.DefaultHttpObjectParser
.
-
-
Method Detail
-
loadSpecification
protected void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Description copied from class:AbstractAsyncManagedObjectSource
Overridden to load specifications.- Specified by:
loadSpecification
in classAbstractAsyncManagedObjectSource<HttpObjectManagedObjectSource.HttpObjectDependencies,None>
- Parameters:
context
- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<HttpObjectManagedObjectSource.HttpObjectDependencies,None> context) throws java.lang.Exception
Description copied from class:AbstractAsyncManagedObjectSource
Overridden to load meta-data.- Specified by:
loadMetaData
in classAbstractAsyncManagedObjectSource<HttpObjectManagedObjectSource.HttpObjectDependencies,None>
- Parameters:
context
- Meta-data.- Throws:
java.lang.Exception
- If fails to load the meta-data.
-
getManagedObject
protected ManagedObject getManagedObject() throws java.lang.Throwable
Description copied from class:AbstractManagedObjectSource
Synchronously obtains theManagedObject
.- Specified by:
getManagedObject
in classAbstractManagedObjectSource<HttpObjectManagedObjectSource.HttpObjectDependencies,None>
- Returns:
ManagedObject
.- Throws:
java.lang.Throwable
- If fails to obtain theManagedObject
.
-
-