Interface ExecutiveContext
- All Superinterfaces:
SourceContext,SourceProperties,TeamSourceContext
- All Known Implementing Classes:
ExecutiveContextImpl
Context for the
Executive.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptioncreateThreadFactory(String teamName) Creates aThreadFactoryfor theTeamname.Obtains theTeamSourceto create theTeam.booleanIndicates if requesting noTeamOversight.Methods inherited from interface net.officefloor.frame.api.source.SourceContext
getClassLoader, getClock, getLogger, getName, getOptionalResource, getProfiles, getResource, isLoadingType, loadClass, loadOptionalClass, loadOptionalService, loadOptionalServices, loadService, loadService, loadServicesMethods inherited from interface net.officefloor.frame.api.source.SourceProperties
getProperties, getProperty, getProperty, getPropertyNamesMethods inherited from interface net.officefloor.frame.api.team.source.TeamSourceContext
getTeamName, getTeamSize, getTeamSize, getThreadFactory
-
Method Details
-
isRequestNoTeamOversight
boolean isRequestNoTeamOversight()Indicates if requesting no
TeamOversight.The
Executivemay ignore this request.- Returns:
trueto request noTeamOversight.
-
getTeamSource
TeamSource getTeamSource()Obtains theTeamSourceto create theTeam.- Returns:
TeamSourceto create theTeam.
-
createThreadFactory
Creates a
ThreadFactoryfor theTeamname.The
Executivemay decide to create multipleTeaminstances for the actualTeam. This allows identifying whichThreadwill belong to eachTeam.- Parameters:
teamName- Name of theTeam.- Returns:
ThreadFactory.
-