Class AbstractModule
java.lang.Object
su.nightexpress.excellentclaims.api.core.AbstractModule
- All Implemented Interfaces:
Identifiable, LifecycleComponent, NightModule
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(LifecycleComponent component) <T extends LifecycleComponent>
TgetComponent(Class<T> componentType) getId()protected abstract voidonReload()protected abstract voidprotected abstract voidonStart()voidreload()voidshutdown()voidstart()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Identifiable
id
-
Field Details
-
id
-
components
-
-
Constructor Details
-
AbstractModule
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
start
public void start()- Specified by:
startin interfaceLifecycleComponent
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceLifecycleComponent
-
reload
public void reload()- Specified by:
reloadin interfaceLifecycleComponent
-
onStart
protected abstract void onStart() -
onShutdown
protected abstract void onShutdown() -
onReload
protected abstract void onReload() -
addComponent
- Specified by:
addComponentin interfaceNightModule
-
getComponent
- Specified by:
getComponentin interfaceNightModule
-
getComponents
- Specified by:
getComponentsin interfaceNightModule
-