Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
304 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package org.jboss.weld; | ||
|
||
/** | ||
* Container status | ||
* @author pmuir | ||
* | ||
*/ | ||
public enum ContainerState | ||
{ | ||
/** | ||
* The container has not been started | ||
*/ | ||
STOPPED(false), | ||
/** | ||
* The container is starting | ||
*/ | ||
STARTING(false), | ||
/** | ||
* The container has started and beans have been deployed | ||
*/ | ||
INITIALIZED(true), | ||
/** | ||
* The deployment has been validated | ||
*/ | ||
VALIDATED(true), | ||
/** | ||
* The container has been shutdown | ||
*/ | ||
SHUTDOWN(false); | ||
|
||
private ContainerState(boolean available) | ||
{ | ||
this.available = available; | ||
} | ||
|
||
final boolean available; | ||
|
||
/** | ||
* Whether the container is available for use | ||
* | ||
* @return | ||
*/ | ||
public boolean isAvailable() | ||
{ | ||
return available; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.