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.StringSOURCE_NAMEScala source name.
-
Constructor Summary
Constructors Constructor Description ScalaProcedureSourceServiceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcedureSourcecreateService(ServiceContext serviceContext)Creates the service.static java.lang.ObjectgetModule(java.lang.String resource, ServiceContext context)Obtains theMODULEfrom 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.ExceptionObtains theMODULEfrom objectClass.- Parameters:
resource- Resource.context-ServiceContext.- Returns:
MODULEornull.- Throws:
java.lang.Exception- If fails to obtainMODULE.
-
createService
public ProcedureSource createService(ServiceContext serviceContext) throws java.lang.Throwable
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<ProcedureSource>- Parameters:
serviceContext-ServiceContext.- Returns:
- Service.
- Throws:
java.lang.Throwable- If fails to create the service.
-
-