Package ortus.boxlang.runtime.services
Interface IService
- All Known Implementing Classes:
ApplicationService
,AsyncService
,BaseService
,CacheService
,ComponentService
,DatasourceService
,FunctionService
,InterceptorService
,ModuleService
,SchedulerService
public interface IService
The BoxLang service interface.
If you implement this interface, your class will be treated as a BoxLang service.
This means that it will be automatically registered with the BoxLang runtime and
will be available for use in BoxLang code.
Every module is scaned for services and registered in the BoxRuntime
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the unique service namevoid
onShutdown
(Boolean force) The shutdown event is fired when the runtime shuts downvoid
The startup event is fired when the runtime starts up
-
Method Details
-
getName
Key getName()Get the unique service name -
onStartup
void onStartup()The startup event is fired when the runtime starts up -
onShutdown
The shutdown event is fired when the runtime shuts down- Parameters:
force
- Whether the shutdown is forced
-