public enum JEEServer extends Enum<JEEServer>
Modifier and Type | Class and Description |
---|---|
static interface |
JEEServer.JEEServerVisitor<T>
Visitor for JEEServer
|
Enum Constant and Description |
---|
GLASSFISH2
The Glassfish2 application server.
|
GLASSFISH3
The Glassfish3 application server.
|
JBOSS5
The JBoss <7 server.
|
JBOSS7
The JBoss >=7 server.
|
OC4J
The OC4J application 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 JBOSS5
public static final JEEServer JBOSS7
public static final JEEServer OPENEJB
public static final JEEServer GLASSFISH2
public static final JEEServer GLASSFISH3
public static final JEEServer WEBSPHERE
public static final JEEServer WEBLOGIC
public static final JEEServer UNKNOWN
public static final JEEServer OC4J
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)
visitor
- Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.