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 ClassesModifier and TypeClassDescriptionstatic interfaceObtains the defaultHttpObjectParserFactory.static enumDependency keys.Nested classes/interfaces inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
AbstractAsyncManagedObjectSource.DependencyLabeller<K extends Enum<K>>, AbstractAsyncManagedObjectSource.ExecutionLabeller, AbstractAsyncManagedObjectSource.Labeller<K extends Enum<K>>, AbstractAsyncManagedObjectSource.MetaDataContext<O extends Enum<O>,F extends Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext -
Constructor Summary
ConstructorsConstructorDescriptionHttpObjectManagedObjectSource(Class<T> objectClass, String[] acceptedContentTypes, List<HttpObjectParserFactory> parserFactories, HttpObjectManagedObjectSource.DefaultHttpObjectParser defaultHttpObjectParser) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionprotected ManagedObjectSynchronously obtains theManagedObject.protected voidloadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<HttpObjectManagedObjectSource.HttpObjectDependencies, None> context) Overridden to load meta-data.protected voidOverridden to load specifications.Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource
sourceManagedObjectMethods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
getSpecification, init, start, stop
-
Constructor Details
-
HttpObjectManagedObjectSource
public HttpObjectManagedObjectSource(Class<T> objectClass, String[] acceptedContentTypes, List<HttpObjectParserFactory> parserFactories, HttpObjectManagedObjectSource.DefaultHttpObjectParser defaultHttpObjectParser) Instantiate.- Parameters:
objectClass-ObjectClass.acceptedContentTypes- Acceptedcontent-typevalues.parserFactories-ListofHttpObjectParserFactoryinstances that are loaded by theWebArchitect.defaultHttpObjectParser-HttpObjectManagedObjectSource.DefaultHttpObjectParser.
-
-
Method Details
-
loadSpecification
Description copied from class:AbstractAsyncManagedObjectSourceOverridden to load specifications.- Specified by:
loadSpecificationin classAbstractAsyncManagedObjectSource<HttpObjectManagedObjectSource.HttpObjectDependencies,None> - Parameters:
context- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<HttpObjectManagedObjectSource.HttpObjectDependencies, None> context) throws ExceptionDescription copied from class:AbstractAsyncManagedObjectSourceOverridden to load meta-data.- Specified by:
loadMetaDatain classAbstractAsyncManagedObjectSource<HttpObjectManagedObjectSource.HttpObjectDependencies,None> - Parameters:
context- Meta-data.- Throws:
Exception- If fails to load the meta-data.
-
getManagedObject
Description copied from class:AbstractManagedObjectSourceSynchronously obtains theManagedObject.- Specified by:
getManagedObjectin classAbstractManagedObjectSource<HttpObjectManagedObjectSource.HttpObjectDependencies,None> - Returns:
ManagedObject.- Throws:
Throwable- If fails to obtain theManagedObject.
-