Package net.officefloor.scala
Class ScalaProcedureSourceServiceFactory
- java.lang.Object
-
- net.officefloor.scala.ScalaProcedureSourceServiceFactory
-
- All Implemented Interfaces:
ProcedureSourceServiceFactory
,ServiceFactory<ProcedureSource>
public class ScalaProcedureSourceServiceFactory extends java.lang.Object implements ProcedureSourceServiceFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SOURCE_NAME
Scala source name.
-
Constructor Summary
Constructors Constructor Description ScalaProcedureSourceServiceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcedureSource
createService(ServiceContext serviceContext)
Creates the service.static java.lang.Object
getModule(java.lang.String resource, ServiceContext context)
Obtains theMODULE
from objectClass
.
-
-
-
Field Detail
-
SOURCE_NAME
public static final java.lang.String SOURCE_NAME
Scala source name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getModule
public static java.lang.Object getModule(java.lang.String resource, ServiceContext context) throws java.lang.Exception
Obtains theMODULE
from objectClass
.- Parameters:
resource
- Resource.context
-ServiceContext
.- Returns:
MODULE
ornull
.- Throws:
java.lang.Exception
- If fails to obtainMODULE
.
-
createService
public ProcedureSource createService(ServiceContext serviceContext) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<ProcedureSource>
- Parameters:
serviceContext
-ServiceContext
.- Returns:
- Service.
- Throws:
java.lang.Throwable
- If fails to create the service.
-
-