Package net.officefloor.web.executive
Class WebThreadAffinityExecutiveSource
- java.lang.Object
-
- net.officefloor.frame.api.executive.source.impl.AbstractExecutiveSource
-
- net.officefloor.web.executive.WebThreadAffinityExecutiveSource
-
- All Implemented Interfaces:
ExecutiveSource
public class WebThreadAffinityExecutiveSource extends AbstractExecutiveSource
Web basedExecutiveSource
providingThread
affinity.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.frame.api.executive.source.impl.AbstractExecutiveSource
AbstractExecutiveSource.SpecificationContext
-
-
Constructor Summary
Constructors Constructor Description WebThreadAffinityExecutiveSource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Executive
createExecutive(ExecutiveSourceContext context)
Creates theExecutive
.static boolean
isThreadAffinityAvailable()
Indicates ifAffinity
available.protected void
loadSpecification(AbstractExecutiveSource.SpecificationContext context)
Overridden to load specification.-
Methods inherited from class net.officefloor.frame.api.executive.source.impl.AbstractExecutiveSource
getSpecification
-
-
-
-
Method Detail
-
isThreadAffinityAvailable
public static boolean isThreadAffinityAvailable()
Indicates ifAffinity
available.- Returns:
true
ifAffinity
available.
-
loadSpecification
protected void loadSpecification(AbstractExecutiveSource.SpecificationContext context)
Description copied from class:AbstractExecutiveSource
Overridden to load specification.- Specified by:
loadSpecification
in classAbstractExecutiveSource
- Parameters:
context
-AbstractExecutiveSource.SpecificationContext
.
-
createExecutive
public Executive createExecutive(ExecutiveSourceContext context) throws java.lang.Exception
Description copied from interface:ExecutiveSource
Creates theExecutive
.- Parameters:
context
-ExecutiveSourceContext
.- Returns:
Executive
.- Throws:
java.lang.Exception
- If fails to configure theExecutiveSource
.
-
-