atg.nucleus
Class GenericReference

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.nucleus.GenericReference
All Implemented Interfaces:
NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener

public class GenericReference
extends GenericService

When this service is started it will resolve the component through the componentPath property and bind that new object into the name of this service.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
GenericReference()
          Constructs an instanceof GenericReference
 
Method Summary
 void doStartService()
          This is called after a Service has been created, placed into the naming hierarchy, and initialized with its configured property values.
 java.lang.String getComponentPath()
          Returns property ComponentPath
 java.lang.Object getReference()
          Returns property Reference
 boolean getUseRequestNameResolver()
          Returns property useRequestNameResolver
protected  java.lang.Object resolveName()
          Resolves the configured component path.
 void setComponentPath(java.lang.String pComponentPath)
          Sets property ComponentPath
 void setUseRequestNameResolver(boolean pUseRequestNameResolver)
          Sets property useRequestNameResolver
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

GenericReference

public GenericReference()
Constructs an instanceof GenericReference

Method Detail

setComponentPath

public void setComponentPath(java.lang.String pComponentPath)
Sets property ComponentPath


getComponentPath

public java.lang.String getComponentPath()
Returns property ComponentPath


setUseRequestNameResolver

public void setUseRequestNameResolver(boolean pUseRequestNameResolver)
Sets property useRequestNameResolver


getUseRequestNameResolver

public boolean getUseRequestNameResolver()
Returns property useRequestNameResolver


getReference

public java.lang.Object getReference()
Returns property Reference


doStartService

public void doStartService()
                    throws ServiceException
Description copied from class: GenericService
This is called after a Service has been created, placed into the naming hierarchy, and initialized with its configured property values. The Service should override this method to start any processes it requires.

Overrides:
doStartService in class GenericService
Throws:
ServiceException - if the Service had a problem starting up

resolveName

protected java.lang.Object resolveName()
Resolves the configured component path. If useRequestNameResolver is true, the path is resolved for the current request. Otherwise, the path is assumed to refer to a globally scoped component.

Returns:
the Object to which the name resolves, or null if the name could not be resolved.