com.sun.enterprise.web
Class ServerConfigLookup

java.lang.Object
  extended by com.sun.enterprise.web.ServerConfigLookup

@Service
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class ServerConfigLookup
extends java.lang.Object


Field Summary
protected static java.util.logging.Logger _logger
           
 
Constructor Summary
ServerConfigLookup()
           
 
Method Summary
 boolean calculateWebAvailabilityEnabledFromConfig()
          Get the availability-enabled from domain.xml.
 boolean calculateWebAvailabilityEnabledFromConfig(WebModule ctx)
          Get the availability-enabled from domain.xml.
 boolean getAsyncReplicationFromConfig(WebModule ctx)
           
 boolean getAvailabilityEnabledFromConfig()
          Get the availability-enabled from domain.xml.
protected  AvailabilityService getAvailabilityService()
          Get the availability-service element from domain.xml.
 boolean getDisableJreplicaFromConfig()
           
 SessionManager getInstanceSessionManager()
          Get the session manager bean from domain.xml return null if not defined or other problem
 ManagerProperties getInstanceSessionManagerManagerProperties()
          Get the manager properties bean from domain.xml return null if not defined or other problem
 StoreProperties getInstanceSessionManagerStoreProperties()
          Get the store properties bean from domain.xml return null if not defined or other problem
 SessionProperties getInstanceSessionProperties()
          Get the session properties bean from server.xml return null if not defined or other problem
 java.lang.String getPersistenceFrequencyFromConfig()
          Get the persistenceFrequency from domain.xml.
 java.lang.String getPersistenceScopeFromConfig()
          Get the persistenceScope from domain.xml.
 PersistenceType getPersistenceTypeFromConfig()
          Get the persistenceType from domain.xml.
 boolean getWebContainerAvailabilityEnabledFromConfig()
          Get the availability-enabled for the web container from domain.xml.
protected  java.lang.String getWebContainerAvailabilityPropertyString(java.lang.String propName)
          Get the String value of the property under web-container-availability element from domain.xml whose name matches propName return null if not found
protected  java.lang.String getWebContainerAvailabilityPropertyString(java.lang.String propName, java.lang.String defaultValue)
          Get the String value of the property under web-container-availability element from domain.xml whose name matches propName return defaultValue if not found
 boolean isSsoFailoverEnabledFromConfig()
          Get the sso-failover-enabled boolean from domain.xml.
protected  java.lang.Boolean toBoolean(java.lang.String value)
          convert the input value to the appropriate Boolean value if input value is null, return null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_logger

protected static final java.util.logging.Logger _logger
Constructor Detail

ServerConfigLookup

public ServerConfigLookup()
Method Detail

getInstanceSessionManager

public SessionManager getInstanceSessionManager()
Get the session manager bean from domain.xml return null if not defined or other problem


getInstanceSessionManagerManagerProperties

public ManagerProperties getInstanceSessionManagerManagerProperties()
Get the manager properties bean from domain.xml return null if not defined or other problem


getInstanceSessionManagerStoreProperties

public StoreProperties getInstanceSessionManagerStoreProperties()
Get the store properties bean from domain.xml return null if not defined or other problem


getInstanceSessionProperties

public SessionProperties getInstanceSessionProperties()
Get the session properties bean from server.xml return null if not defined or other problem


getAvailabilityService

protected AvailabilityService getAvailabilityService()
Get the availability-service element from domain.xml. return null if not found


getAvailabilityEnabledFromConfig

public boolean getAvailabilityEnabledFromConfig()
Get the availability-enabled from domain.xml. return false if not found


getWebContainerAvailabilityPropertyString

protected java.lang.String getWebContainerAvailabilityPropertyString(java.lang.String propName)
Get the String value of the property under web-container-availability element from domain.xml whose name matches propName return null if not found

Parameters:
propName -

getWebContainerAvailabilityPropertyString

protected java.lang.String getWebContainerAvailabilityPropertyString(java.lang.String propName,
                                                                     java.lang.String defaultValue)
Get the String value of the property under web-container-availability element from domain.xml whose name matches propName return defaultValue if not found

Parameters:
propName -

getWebContainerAvailabilityEnabledFromConfig

public boolean getWebContainerAvailabilityEnabledFromConfig()
Get the availability-enabled for the web container from domain.xml. return inherited global availability-enabled if not found


isSsoFailoverEnabledFromConfig

public boolean isSsoFailoverEnabledFromConfig()
Get the sso-failover-enabled boolean from domain.xml.


calculateWebAvailabilityEnabledFromConfig

public boolean calculateWebAvailabilityEnabledFromConfig()
Get the availability-enabled from domain.xml. This takes into account: global web-container-availability return false if not found


calculateWebAvailabilityEnabledFromConfig

public boolean calculateWebAvailabilityEnabledFromConfig(WebModule ctx)
Get the availability-enabled from domain.xml. This takes into account: global web-container-availability web-module (if stand-alone) return false if not found


getAsyncReplicationFromConfig

public boolean getAsyncReplicationFromConfig(WebModule ctx)

getPersistenceTypeFromConfig

public PersistenceType getPersistenceTypeFromConfig()
Get the persistenceType from domain.xml. return null if not found


getPersistenceFrequencyFromConfig

public java.lang.String getPersistenceFrequencyFromConfig()
Get the persistenceFrequency from domain.xml. return null if not found


getPersistenceScopeFromConfig

public java.lang.String getPersistenceScopeFromConfig()
Get the persistenceScope from domain.xml. return null if not found


getDisableJreplicaFromConfig

public boolean getDisableJreplicaFromConfig()

toBoolean

protected java.lang.Boolean toBoolean(java.lang.String value)
convert the input value to the appropriate Boolean value if input value is null, return null



Copyright © 2012 GlassFish Community. All Rights Reserved.