Package net.officefloor.plugin.team
Class ThreadLocalAwareTeamSourceService
- java.lang.Object
-
- net.officefloor.plugin.team.ThreadLocalAwareTeamSourceService
-
- All Implemented Interfaces:
TeamSourceService<ThreadLocalAwareTeamSource>
,TeamSourceServiceFactory
,ServiceFactory<TeamSourceService<?>>
public class ThreadLocalAwareTeamSourceService extends java.lang.Object implements TeamSourceService<ThreadLocalAwareTeamSource>, TeamSourceServiceFactory
- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalAwareTeamSourceService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TeamSourceService<?>
createService(ServiceContext context)
Creates the service.java.lang.String
getTeamSourceAlias()
Obtains the alias for theTeamSource
Class
.java.lang.Class<ThreadLocalAwareTeamSource>
getTeamSourceClass()
Obtains theTeamSource
Class
.
-
-
-
Method Detail
-
createService
public TeamSourceService<?> createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<TeamSourceService<?>>
- Parameters:
context
-ServiceContext
.- Returns:
- Service.
- Throws:
java.lang.Throwable
- If fails to create the service.
-
getTeamSourceAlias
public java.lang.String getTeamSourceAlias()
Description copied from interface:TeamSourceService
Obtains the alias for theTeamSource
Class
.- Specified by:
getTeamSourceAlias
in interfaceTeamSourceService<ThreadLocalAwareTeamSource>
- Returns:
- Alias for the
TeamSource
Class
.
-
getTeamSourceClass
public java.lang.Class<ThreadLocalAwareTeamSource> getTeamSourceClass()
Description copied from interface:TeamSourceService
Obtains theTeamSource
Class
.- Specified by:
getTeamSourceClass
in interfaceTeamSourceService<ThreadLocalAwareTeamSource>
- Returns:
TeamSource
Class
.
-
-