Class OnePersonTeamSource
- java.lang.Object
-
- net.officefloor.frame.api.team.source.impl.AbstractTeamSource
-
- net.officefloor.frame.impl.spi.team.OnePersonTeamSource
-
- All Implemented Interfaces:
TeamSource
public class OnePersonTeamSource extends AbstractTeamSource
TeamSource
for theOnePersonTeam
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.frame.api.team.source.impl.AbstractTeamSource
AbstractTeamSource.SpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_THREAD_PRIORITY
DefaultThread
priority.static java.lang.String
MAX_WAIT_TIME_PROPERTY_NAME
Property name of the max wait time in milliseconds.static java.lang.String
PROPERTY_THREAD_PRIORITY
Property to specify the workerThread
priority.
-
Constructor Summary
Constructors Constructor Description OnePersonTeamSource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OnePersonTeam
createOnePersonTeam(java.lang.String teamName)
Convenience method to create aOnePersonTeam
.Team
createTeam(TeamSourceContext context)
Creates theTeam
.protected void
loadSpecification(AbstractTeamSource.SpecificationContext context)
Overridden to load specification.-
Methods inherited from class net.officefloor.frame.api.team.source.impl.AbstractTeamSource
getSpecification
-
-
-
-
Field Detail
-
PROPERTY_THREAD_PRIORITY
public static final java.lang.String PROPERTY_THREAD_PRIORITY
Property to specify the workerThread
priority.- See Also:
- Constant Field Values
-
MAX_WAIT_TIME_PROPERTY_NAME
public static final java.lang.String MAX_WAIT_TIME_PROPERTY_NAME
Property name of the max wait time in milliseconds.- See Also:
- Constant Field Values
-
DEFAULT_THREAD_PRIORITY
public static final int DEFAULT_THREAD_PRIORITY
DefaultThread
priority.- See Also:
- Constant Field Values
-
-
Method Detail
-
createOnePersonTeam
public static OnePersonTeam createOnePersonTeam(java.lang.String teamName) throws java.lang.Exception
Convenience method to create aOnePersonTeam
.- Parameters:
teamName
- Name of theTeam
.- Returns:
OnePersonTeam
.- Throws:
java.lang.Exception
- If fails to create theOnePersonTeam
.
-
loadSpecification
protected void loadSpecification(AbstractTeamSource.SpecificationContext context)
Description copied from class:AbstractTeamSource
Overridden to load specification.- Specified by:
loadSpecification
in classAbstractTeamSource
- Parameters:
context
-AbstractTeamSource.SpecificationContext
.
-
createTeam
public Team createTeam(TeamSourceContext context) throws java.lang.Exception
Description copied from interface:TeamSource
Creates theTeam
.- Parameters:
context
-TeamSourceContext
.- Returns:
Team
.- Throws:
java.lang.Exception
- If fails to configure theTeamSource
.
-
-