public class DeployContainer<C extends DeployControllerApi<?>> extends CachedDependency implements DeployContainerApi<C>, Dependency
Modifier and Type | Class and Description |
---|---|
class |
DeployContainer.StartupPriorityComparator |
Constructor and Description |
---|
DeployContainer(java.lang.Class<C> type)
Creates the deploy container.
|
Modifier and Type | Method and Description |
---|---|
void |
add(DeployGenerator<C> generator)
Adds a deploy generator.
|
void |
destroy()
Closes the deploys.
|
C |
findController(java.lang.String name)
Returns the matching entry.
|
C |
findControllerById(java.lang.String name)
Returns the matching entry.
|
C[] |
getControllers()
Returns the deployed entries.
|
void |
init()
Initialize the container.
|
boolean |
isModifiedImpl()
Returns true if the deployment has modified.
|
boolean |
logModified(java.util.logging.Logger log)
Logs the reason for modification.
|
void |
remove(DeployGenerator<C> generator)
Removes a deploy.
|
void |
remove(java.lang.String name)
Called to explicitly remove an entry from the cache.
|
void |
start()
Start the container.
|
void |
stop()
Closes the stop.
|
java.lang.String |
toString() |
void |
update()
Forces updates.
|
C |
update(java.lang.String name)
Callback from the DeployGenerator when the deployment changes.
|
C |
updateNoStart(java.lang.String name)
Callback from the DeployGenerator when the deployment changes.
|
getCheckInterval, isModified, setCheckInterval
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isModified
public DeployContainer(java.lang.Class<C> type)
public void add(DeployGenerator<C> generator)
add
in interface DeployContainerApi<C extends DeployControllerApi<?>>
public void remove(DeployGenerator<C> generator)
remove
in interface DeployContainerApi<C extends DeployControllerApi<?>>
public boolean isModifiedImpl()
isModifiedImpl
in class CachedDependency
public boolean logModified(java.util.logging.Logger log)
logModified
in interface Dependency
public void update()
update
in interface DeployContainerApi<C extends DeployControllerApi<?>>
@PostConstruct public void init()
public void start()
start
in interface DeployContainerApi<C extends DeployControllerApi<?>>
public C findController(java.lang.String name)
findController
in interface DeployContainerApi<C extends DeployControllerApi<?>>
public C findControllerById(java.lang.String name)
findControllerById
in interface DeployContainerApi<C extends DeployControllerApi<?>>
public C[] getControllers()
getControllers
in interface DeployContainerApi<C extends DeployControllerApi<?>>
public C update(java.lang.String name)
update
is only called when a deployment is added
or removed, e.g. with a new .war file.
The entry handles its own internal changes, e.g. a modification to
a web.xml file.update
in interface DeployContainerApi<C extends DeployControllerApi<?>>
public C updateNoStart(java.lang.String name)
update
is only called when a deployment is added
or removed, e.g. with a new .war file.
The entry handles its own internal changes, e.g. a modification to
a web.xml file.public void remove(java.lang.String name)
remove
in interface DeployContainerApi<C extends DeployControllerApi<?>>
public void stop()
stop
in interface DeployContainerApi<C extends DeployControllerApi<?>>
public void destroy()
destroy
in interface DeployContainerApi<C extends DeployControllerApi<?>>
public java.lang.String toString()
toString
in class java.lang.Object