Class ExecutiveSourceContextImpl
- java.lang.Object
-
- net.officefloor.frame.impl.construct.source.SourcePropertiesImpl
-
- net.officefloor.frame.impl.construct.source.SourceContextImpl
-
- net.officefloor.frame.impl.construct.executive.ExecutiveSourceContextImpl
-
- All Implemented Interfaces:
ExecutiveSourceContext
,ServiceContext
,SourceContext
,SourceProperties
public class ExecutiveSourceContextImpl extends SourceContextImpl implements ExecutiveSourceContext
ExecutiveSourceContext
implementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EXECUTIVE_NAME
Name for theExecutive
.
-
Constructor Summary
Constructors Constructor Description ExecutiveSourceContextImpl(boolean isLoadingType, SourceContext sourceContext, SourceProperties sourceProperties, ThreadFactoryManufacturer threadFactoryManufacturer)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.ThreadFactory
createThreadFactory(java.lang.String executionStrategyName, Executive executive)
Creates the underlyingThreadFactory
that should be used forExecutionStrategy
instances.-
Methods inherited from class net.officefloor.frame.impl.construct.source.SourceContextImpl
getClassLoader, getClock, getLogger, getName, getOptionalResource, getProfiles, getResource, isLoadingType, loadClass, loadOptionalClass, loadOptionalService, loadOptionalServices, loadService, loadService, loadServices
-
Methods inherited from class net.officefloor.frame.impl.construct.source.SourcePropertiesImpl
addProperty, getProperties, getProperty, getProperty, getPropertyNames
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.frame.api.source.SourceContext
getClassLoader, getClock, getLogger, getName, getOptionalResource, getProfiles, getResource, isLoadingType, loadClass, loadOptionalClass, loadOptionalService, loadOptionalServices, loadService, loadService, loadServices
-
Methods inherited from interface net.officefloor.frame.api.source.SourceProperties
getProperties, getProperty, getProperty, getPropertyNames
-
-
-
-
Field Detail
-
EXECUTIVE_NAME
public static final java.lang.String EXECUTIVE_NAME
Name for theExecutive
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExecutiveSourceContextImpl
public ExecutiveSourceContextImpl(boolean isLoadingType, SourceContext sourceContext, SourceProperties sourceProperties, ThreadFactoryManufacturer threadFactoryManufacturer)
Instantiate.- Parameters:
isLoadingType
- Indicates if loading type.sourceContext
-SourceContext
.sourceProperties
-SourceProperties
.threadFactoryManufacturer
-ThreadFactoryManufacturer
.
-
-
Method Detail
-
createThreadFactory
public java.util.concurrent.ThreadFactory createThreadFactory(java.lang.String executionStrategyName, Executive executive)
Description copied from interface:ExecutiveSourceContext
Creates the underlyingThreadFactory
that should be used forExecutionStrategy
instances.- Specified by:
createThreadFactory
in interfaceExecutiveSourceContext
- Parameters:
executionStrategyName
- Name of theExecutionStrategy
to associateThread
names to theExecutionStrategy
.executive
-Executive
.- Returns:
ThreadFactory
to use forExecutionStrategy
instances.
-
-