Package net.officefloor.kotlin
Class KotlinProcedureSourceServiceFactory
- java.lang.Object
-
- net.officefloor.kotlin.KotlinProcedureSourceServiceFactory
-
- All Implemented Interfaces:
ProcedureSourceServiceFactory,ServiceFactory<ProcedureSource>
public class KotlinProcedureSourceServiceFactory extends java.lang.Object implements ProcedureSourceServiceFactory
KotlinProcedureSourceServiceFactory.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSOURCE_NAMESource name.
-
Constructor Summary
Constructors Constructor Description KotlinProcedureSourceServiceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcedureSourcecreateService(ServiceContext serviceContext)Creates the service.static java.lang.Class<?>getKotlinFunctions(java.lang.String resource, ServiceContext context)Obtains the Kotlin functionsClass.
-
-
-
Field Detail
-
SOURCE_NAME
public static final java.lang.String SOURCE_NAME
Source name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getKotlinFunctions
public static java.lang.Class<?> getKotlinFunctions(java.lang.String resource, ServiceContext context)Obtains the Kotlin functionsClass.- Parameters:
resource- Resource.context-ServiceContext.- Returns:
- Kotlin functions
Classornull.
-
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.
-
-