Class ComponentCore
java.lang.Object
su.nightexpress.excellentclaims.api.core.ComponentCore
- All Implemented Interfaces:
LifecycleComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T> <T> TgetComponent(Class<T> componentType) Retrieves a registered component by its exact class or implemented interface.booleanisRegistered(LifecycleComponent component) voidregister(LifecycleComponent component) voidreload()voidshutdown()voidstart()
-
Constructor Details
-
ComponentCore
public ComponentCore()
-
-
Method Details
-
isRegistered
-
register
-
reload
public void reload()- Specified by:
reloadin interfaceLifecycleComponent
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceLifecycleComponent
-
start
public void start()- Specified by:
startin interfaceLifecycleComponent
-
getComponent
Retrieves a registered component by its exact class or implemented interface. The generic bound israther than to allow looking up pure API interfaces that don't expose lifecycle methods. -
component
-
getComponents
-