public abstract class DeployGenerator<E extends DeployControllerApi<?>> extends java.lang.Object implements Dependency, EnvironmentListener
Constructor and Description |
---|
DeployGenerator(DeployContainer<E> container)
Creates the deploy.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Closes the deploy
|
protected void |
destroyImpl()
Derived class implentation of destroy.
|
void |
environmentBind(EnvironmentClassLoader loader)
Handles the case where the environment is starting (after init).
|
void |
environmentConfigure(EnvironmentClassLoader loader)
Handles the case where the environment is configuring (after init).
|
void |
environmentStart(EnvironmentClassLoader loader)
Handles the case where the environment is starting (after init).
|
void |
environmentStop(EnvironmentClassLoader loader)
Handles the case where the environment is stopping
|
protected void |
fillDeployedNames(java.util.Set<java.lang.String> names)
Returns the deployed names.
|
protected void |
generateController(java.lang.String name,
java.util.ArrayList<E> controllers)
Generates the controller.
|
java.lang.Throwable |
getConfigException() |
DeployContainer<E> |
getDeployContainer()
Returns the deploy container.
|
protected java.util.logging.Logger |
getLog()
Returns the log.
|
java.lang.ClassLoader |
getParentClassLoader()
Returns the parent class loader.
|
DeployMode |
getRedeployMode()
Gets the redeploy mode.
|
DeployMode |
getStartupMode()
Gets the startup mode.
|
java.lang.String |
getState() |
void |
init() |
protected void |
initImpl()
Derived class implementation of init
|
boolean |
isActive() |
boolean |
isDestroyed() |
boolean |
isModified()
Returns true if the deployment has modified.
|
boolean |
logModified(java.util.logging.Logger log)
Returns true if the deployment has modified.
|
protected void |
mergeController(E controller,
java.lang.String name)
Merges the entry with other matching entries, returning the
new entry.
|
void |
setRedeployMode(DeployMode mode)
Sets the redeploy mode.
|
void |
setStartupMode(DeployMode mode)
Sets the startup mode.
|
void |
start()
Starts the deployment.
|
protected void |
startImpl()
Derived class implentation of start.
|
void |
stop()
Stops the deploy
|
protected void |
stopImpl()
Derived class implentation of stop.
|
java.lang.String |
toString() |
void |
update()
Forces an update.
|
void |
updateIfModified()
lazy-start
|
public DeployGenerator(DeployContainer<E> container)
public DeployContainer<E> getDeployContainer()
public java.lang.ClassLoader getParentClassLoader()
@Configurable public void setStartupMode(DeployMode mode) throws ConfigException
ConfigException
public DeployMode getStartupMode() throws ConfigException
ConfigException
public void setRedeployMode(DeployMode mode) throws ConfigException
ConfigException
public DeployMode getRedeployMode() throws ConfigException
ConfigException
@PostConstruct public final void init() throws ConfigException
ConfigException
protected void initImpl()
public boolean isModified()
isModified
in interface Dependency
public boolean logModified(java.util.logging.Logger log)
logModified
in interface Dependency
public java.lang.String getState()
public final void start()
public boolean isActive()
public boolean isDestroyed()
protected void startImpl()
public void updateIfModified()
public void update()
protected void fillDeployedNames(java.util.Set<java.lang.String> names)
protected void generateController(java.lang.String name, java.util.ArrayList<E> controllers)
protected void mergeController(E controller, java.lang.String name)
protected java.util.logging.Logger getLog()
public final void stop()
protected void stopImpl()
public java.lang.Throwable getConfigException()
public final void destroy()
protected void destroyImpl()
public void environmentConfigure(EnvironmentClassLoader loader)
environmentConfigure
in interface EnvironmentListener
public void environmentBind(EnvironmentClassLoader loader)
environmentBind
in interface EnvironmentListener
public void environmentStart(EnvironmentClassLoader loader)
environmentStart
in interface EnvironmentListener
public void environmentStop(EnvironmentClassLoader loader)
environmentStop
in interface EnvironmentListener
public java.lang.String toString()
toString
in class java.lang.Object