Class HttpSecurityExecuteManagedObjectSource<F extends Enum<F>>
java.lang.Object
net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<O,F>
net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource<None,F>
net.officefloor.web.security.impl.HttpSecurityExecuteManagedObjectSource<F>
- All Implemented Interfaces:
ManagedObject,ManagedObjectSource<None,F>
@PrivateSource
public class HttpSecurityExecuteManagedObjectSource<F extends Enum<F>>
extends AbstractManagedObjectSource<None,F>
implements ManagedObject
- Author:
- Daniel Sagenschneider
-
Nested Class Summary
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
ConstructorsConstructorDescriptionHttpSecurityExecuteManagedObjectSource(HttpSecuritySource<?, ?, ?, ?, F> securitySource, HttpSecurityType<?, ?, ?, ?, F> securityType) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionprotected ManagedObjectSynchronously obtains theManagedObject.Obtains the object being managed.protected voidOverridden to load meta-data.protected voidOverridden to load specifications.voidstart(ManagedObjectExecuteContext<F> context) Called once afterManagedObjectSource.init(ManagedObjectSourceContext)to indicate thisManagedObjectSourceshould start execution.voidstop()Called to notify that theOfficeFlooris being closed.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
-
Constructor Details
-
HttpSecurityExecuteManagedObjectSource
public HttpSecurityExecuteManagedObjectSource(HttpSecuritySource<?, ?, ?, ?, F> securitySource, HttpSecurityType<?, ?, ?, ?, F> securityType) Instantiate.- Parameters:
securitySource-HttpSecuritySource.securityType-HttpSecurityType.
-
-
Method Details
-
loadSpecification
Description copied from class:AbstractAsyncManagedObjectSourceOverridden to load specifications.- Specified by:
loadSpecificationin classAbstractAsyncManagedObjectSource<None,F extends Enum<F>> - Parameters:
context- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<None, F> context) throws ExceptionDescription copied from class:AbstractAsyncManagedObjectSourceOverridden to load meta-data.- Specified by:
loadMetaDatain classAbstractAsyncManagedObjectSource<None,F extends Enum<F>> - Parameters:
context- Meta-data.- Throws:
Exception- If fails to load the meta-data.
-
start
Description copied from interface:ManagedObjectSourceCalled once after
ManagedObjectSource.init(ManagedObjectSourceContext)to indicate thisManagedObjectSourceshould start execution.On invocation of this method,
ProcessStateinstances may be invoked via theManagedObjectExecuteContext.- Specified by:
startin interfaceManagedObjectSource<None,F extends Enum<F>> - Overrides:
startin classAbstractAsyncManagedObjectSource<None,F extends Enum<F>> - Parameters:
context-ManagedObjectExecuteContextto use in starting thisManagedObjectSource.- Throws:
Exception- Should theManagedObjectSourcefail to start execution.
-
getManagedObject
Description copied from class:AbstractManagedObjectSourceSynchronously obtains theManagedObject.- Specified by:
getManagedObjectin classAbstractManagedObjectSource<None,F extends Enum<F>> - Returns:
ManagedObject.- Throws:
Throwable- If fails to obtain theManagedObject.
-
stop
public void stop()Description copied from interface:ManagedObjectSourceCalled to notify that the
OfficeFlooris being closed.On return from this method, no further
ProcessStateinstances may be invoked. -
getObject
Description copied from interface:ManagedObjectObtains the object being managed.- Specified by:
getObjectin interfaceManagedObject- Returns:
- Object being managed.
- Throws:
Throwable- Indicating failed to obtain the object for use.
-