public class GenericReference extends GenericService
componentPath
property and bind that new object into
the name of this service.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
GenericReference()
Constructs an instanceof GenericReference
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canResolveName()
Whether resolveName should be invoked.
|
protected void |
checkComponentPath()
Check whether component path is is set.
|
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
|
int |
getResolveCount()
Get the number of times resolution has been attempted.
|
boolean |
getUseRequestNameResolver()
Returns property useRequestNameResolver
|
int |
incrementResolveCount()
Increment the resolve count and return the incremented value.
|
boolean |
isLoggingInfoResolutions()
Returns property loggingInfoResolutions.
|
protected java.lang.Object |
resolveComponent(java.lang.String pComponentName)
Resolves the configured component path.
|
protected java.lang.Object |
resolveName()
Resolves the configured component path.
|
void |
setComponentPath(java.lang.String pComponentPath)
Sets property ComponentPath
|
void |
setLoggingInfoResolutions(boolean pLoggingInfoResolutions)
Sets property loggingInfoResolutions.
|
void |
setUseRequestNameResolver(boolean pUseRequestNameResolver)
Sets property useRequestNameResolver
|
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public GenericReference()
public void setComponentPath(java.lang.String pComponentPath)
public java.lang.String getComponentPath()
public void setUseRequestNameResolver(boolean pUseRequestNameResolver)
public boolean getUseRequestNameResolver()
public void setLoggingInfoResolutions(boolean pLoggingInfoResolutions)
public boolean isLoggingInfoResolutions()
public java.lang.Object getReference()
public int getResolveCount()
public int incrementResolveCount()
public void doStartService() throws ServiceException
GenericService
doStartService
in class GenericService
ServiceException
- if the Service had a problem starting upprotected java.lang.Object resolveComponent(java.lang.String pComponentName)
useRequestNameResolver
is true
, the path is resolved for the current request. Otherwise,
the path is assumed to refer to a globally scoped component.pComponentPath
- the component path to resolve.protected java.lang.Object resolveName()
useRequestNameResolver
is true
, the path is resolved for the current request. Otherwise,
the path is assumed to refer to a globally scoped component.protected boolean canResolveName()
protected void checkComponentPath() throws ServiceException
ServiceException