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.String
SOURCE_NAME
Source name.
-
Constructor Summary
Constructors Constructor Description KotlinProcedureSourceServiceFactory()
-
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.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
Class
ornull
.
-
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.
-
-