Interface ExecutiveContext
-
- All Superinterfaces:
SourceContext
,SourceProperties
,TeamSourceContext
- All Known Implementing Classes:
ExecutiveContextImpl
public interface ExecutiveContext extends TeamSourceContext
Context for theExecutive
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.ThreadFactory
createThreadFactory(java.lang.String teamName)
Creates aThreadFactory
for theTeam
name.TeamSource
getTeamSource()
Obtains theTeamSource
to create theTeam
.-
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
-
Methods inherited from interface net.officefloor.frame.api.team.source.TeamSourceContext
getTeamName, getTeamSize, getTeamSize, getThreadFactory
-
-
-
-
Method Detail
-
getTeamSource
TeamSource getTeamSource()
Obtains theTeamSource
to create theTeam
.- Returns:
TeamSource
to create theTeam
.
-
createThreadFactory
java.util.concurrent.ThreadFactory createThreadFactory(java.lang.String teamName)
Creates a
ThreadFactory
for theTeam
name.The
Executive
may decide to create multipleTeam
instances for the actualTeam
. This allows identifying whichThread
will belong to eachTeam
.- Parameters:
teamName
- Name of theTeam
.- Returns:
ThreadFactory
.
-
-