Package net.officefloor.scala
Class ScalaProcedureSourceServiceFactory
java.lang.Object
net.officefloor.scala.ScalaProcedureSourceServiceFactory
- All Implemented Interfaces:
ProcedureSourceServiceFactory,ServiceFactory<ProcedureSource>
public class ScalaProcedureSourceServiceFactory
extends Object
implements ProcedureSourceServiceFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateService(ServiceContext serviceContext) Creates the service.static ObjectgetModule(String resource, ServiceContext context) Obtains theMODULEfrom objectClass.
-
Field Details
-
SOURCE_NAME
Scala source name.- See Also:
-
-
Constructor Details
-
ScalaProcedureSourceServiceFactory
public ScalaProcedureSourceServiceFactory()
-
-
Method Details
-
getModule
Obtains theMODULEfrom objectClass.- Parameters:
resource- Resource.context-ServiceContext.- Returns:
MODULEornull.- Throws:
Exception- If fails to obtainMODULE.
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<ProcedureSource>- Parameters:
serviceContext-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-