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