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 java.lang.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 java.lang.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(java.lang.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 java.lang.String SERVER_TYPE_PROPERTY_NAME
public static JEEServer[] values()
for (JEEServer c : JEEServer.values()) System.out.println(c);
public static JEEServer valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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 java.lang.String getServerName()
public abstract <T> T visit(JEEServer.JEEServerVisitor<T> visitor)
T
- visitor
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.