public enum JEEServer extends Enum<JEEServer>
Modifier and Type | Class and Description |
---|---|
static interface |
JEEServer.JEEServerVisitor<T>
Visitor for JEEServer
|
Enum Constant and Description |
---|
GLASSFISH
The Glassfish application server.
|
JBOSS
The JBoss server.
|
OPENEJB
OpenEJB.
|
UNKNOWN
Unknown application server.
|
WEBLOGIC
WebLogic.
|
WEBSPHERE
WebSphere.
|
Modifier and Type | Field and Description |
---|---|
static String |
SERVER_TYPE_PROPERTY_NAME
Server type property name.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
applyDefaultServerProperties()
Applies predefined server properties.
|
static JEEServer |
getRuntime()
Returns the server we are running on.
|
abstract String |
getServerName()
Returns the displayable name of the application server.
|
protected abstract boolean |
isRunningOn()
Checks if we are running on a particular kind of a server.
|
static JEEServer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JEEServer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
abstract <T> T |
visit(JEEServer.JEEServerVisitor<T> visitor)
Answer a visitor evaluation
|
public static final JEEServer JBOSS
public static final JEEServer OPENEJB
public static final JEEServer GLASSFISH
public static final JEEServer WEBSPHERE
public static final JEEServer WEBLOGIC
public static final JEEServer UNKNOWN
public static final String SERVER_TYPE_PROPERTY_NAME
public static JEEServer[] values()
for (JEEServer c : JEEServer.values()) System.out.println(c);
public static JEEServer valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract boolean isRunningOn()
true
if we are running on this server,
false
otherwise.protected abstract void applyDefaultServerProperties()
public static JEEServer getRuntime()
public abstract String getServerName()
public abstract <T> T visit(JEEServer.JEEServerVisitor<T> visitor)
T
- visitor
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.