public abstract class LifecycleHandlerInspector extends Object
LifecycleHandler
s to be registered to the Configuration
. A StartHandler
annotated lifecycle handler will be registered through Configuration.onStart(int,
LifecycleHandler)
, whilst a ShutdownHandler
annotated lifecycle handler will be registered through Configuration.onShutdown(int, LifecycleHandler)
.ShutdownHandler
,
StartHandler
,
LifecycleHandler
Modifier and Type | Method and Description |
---|---|
static void |
registerLifecycleHandlers(Configuration configuration,
Object component)
|
public static void registerLifecycleHandlers(Configuration configuration, Object component)
StartHandler
and ShutdownHandler
annotated lifecycle handlers in the given component
. If present, they will be registered on the given configuration
through the Configuration.onStart(int, LifecycleHandler)
and Configuration.onShutdown(int, LifecycleHandler)
methods. If the given component
is null
it will be ignored.configuration
- the Configuration
to register resolved lifecycle handlers tocomponent
- the object to resolve lifecycle handlers forCopyright © 2010–2020. All rights reserved.