org.nakedobjects.runtime.system
Enum DeploymentType

java.lang.Object
  extended by java.lang.Enum<DeploymentType>
      extended by org.nakedobjects.runtime.system.DeploymentType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DeploymentType>

public enum DeploymentType
extends java.lang.Enum<DeploymentType>

Whether running on client or server side etc.


Enum Constant Summary
CLIENT
           
EXPLORATION
           
PROTOTYPE
           
SERVER
           
SERVER_EXPLORATION
           
SERVER_PROTOTYPE
           
SINGLE_USER
           
UTILITY
           
 
Method Summary
 void addViewersIfAnyTo(java.util.List<java.lang.String> requestedViewers)
           
 boolean canInstallFixtures()
           
 boolean canSpecifyConnectors(java.util.List<java.lang.String> connectors)
           
 boolean canSpecifyObjectStore()
           
 boolean canSpecifyViewers(java.util.List<java.lang.String> viewers)
           
 java.lang.String friendlyName()
           
 java.lang.String getDefaultViewer()
           
 void initContext(NakedObjectSessionFactory sessionFactory)
           
 boolean isExploring()
           
 boolean isProduction()
           
 boolean isPrototyping()
           
static DeploymentType lookup(java.lang.String str)
          similar to valueOf(String), but will convert any '-' to '_' first.
 boolean shouldMonitor()
           
 boolean shouldShowSplash()
           
static DeploymentType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DeploymentType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EXPLORATION

public static final DeploymentType EXPLORATION

PROTOTYPE

public static final DeploymentType PROTOTYPE

CLIENT

public static final DeploymentType CLIENT

SERVER

public static final DeploymentType SERVER

SERVER_EXPLORATION

public static final DeploymentType SERVER_EXPLORATION

SERVER_PROTOTYPE

public static final DeploymentType SERVER_PROTOTYPE

SINGLE_USER

public static final DeploymentType SINGLE_USER

UTILITY

public static final DeploymentType UTILITY
Method Detail

values

public static DeploymentType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DeploymentType c : DeploymentType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DeploymentType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

initContext

public void initContext(NakedObjectSessionFactory sessionFactory)

canSpecifyViewers

public boolean canSpecifyViewers(java.util.List<java.lang.String> viewers)

canSpecifyConnectors

public boolean canSpecifyConnectors(java.util.List<java.lang.String> connectors)

canSpecifyObjectStore

public boolean canSpecifyObjectStore()

canInstallFixtures

public boolean canInstallFixtures()

shouldShowSplash

public boolean shouldShowSplash()

shouldMonitor

public boolean shouldMonitor()

isExploring

public boolean isExploring()

isPrototyping

public boolean isPrototyping()

isProduction

public boolean isProduction()

getDefaultViewer

public java.lang.String getDefaultViewer()

addViewersIfAnyTo

public void addViewersIfAnyTo(java.util.List<java.lang.String> requestedViewers)

lookup

public static DeploymentType lookup(java.lang.String str)
similar to valueOf(String), but will convert any '-' to '_' first.

For example, allows a DeploymentType to be specified as either server_exploration or as server-exploration.


friendlyName

public java.lang.String friendlyName()


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.