public abstract class LifecycleManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
LIFECYCLEMANAGER_KEY |
Constructor and Description |
---|
LifecycleManager() |
Modifier and Type | Method and Description |
---|---|
static void |
addLifecycleListener(LifecycleListener listener) |
protected abstract void |
addLifecycleListenerImpl(LifecycleListener listener) |
static InstanceController |
findOrCreateController(InstanceInfo instance)
Returns a controller tailored to manage the lifecycle of a particular
instance.
|
protected abstract InstanceController |
getControllerImpl(InstanceInfo instance) |
static javax.swing.event.EventListenerList |
getListeners() |
protected abstract javax.swing.event.EventListenerList |
getListenersImpl() |
static java.util.logging.Logger |
getLogger() |
protected abstract java.util.logging.Logger |
getLoggerImpl() |
static void |
registerController(Controller controller) |
protected abstract void |
registerControllerImpl(Controller controller) |
static void |
releaseController(InstanceController controller) |
protected abstract void |
releaseControllerImpl(InstanceInfo instance) |
static LifecycleListener |
removeLifecycleListener(LifecycleListener listener) |
protected abstract LifecycleListener |
removeLifecycleListenerImpl(LifecycleListener listener) |
static void |
unregisterController(Controller controller) |
protected abstract void |
unregisterControllerImpl(Controller controller) |
public static InstanceController findOrCreateController(InstanceInfo instance) throws LifecycleException
instance
- LifecycleException
- if a controller could not be created for instance.public static void releaseController(InstanceController controller)
public static void addLifecycleListener(LifecycleListener listener)
public static LifecycleListener removeLifecycleListener(LifecycleListener listener)
public static javax.swing.event.EventListenerList getListeners()
public static java.util.logging.Logger getLogger()
public static void registerController(Controller controller)
public static void unregisterController(Controller controller)
protected abstract InstanceController getControllerImpl(InstanceInfo instance) throws LifecycleException
LifecycleException
protected abstract void releaseControllerImpl(InstanceInfo instance)
protected abstract void addLifecycleListenerImpl(LifecycleListener listener)
protected abstract LifecycleListener removeLifecycleListenerImpl(LifecycleListener listener)
protected abstract javax.swing.event.EventListenerList getListenersImpl()
protected abstract java.util.logging.Logger getLoggerImpl()
protected abstract void registerControllerImpl(Controller controller)
protected abstract void unregisterControllerImpl(Controller controller)