public class PropertyTools extends GenericService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
protected static java.util.ResourceBundle |
sDefaultResources |
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 |
---|
PropertyTools() |
Modifier and Type | Method and Description |
---|---|
void |
copyProperties(java.lang.Object pSource,
java.lang.Object pDest,
java.util.Properties pPropertyMap)
Copy property values from one object to another, using a specified
property mapping.
|
MutableRepositoryItem |
getMutable(RepositoryItem pItem)
Return a mutable version of the specified repository item.
|
addLogListener, createAdminServlet, doStartService, 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 static java.lang.String CLASS_VERSION
protected static java.util.ResourceBundle sDefaultResources
public MutableRepositoryItem getMutable(RepositoryItem pItem) throws InvoiceException
pItem
- A repository item, which may or may not be mutable.InvoiceException
- If any error occurs getting the mutable item. In cases where pItem's
parent repository is not a mutable repository the exception will wrap
an underlying ClassCastException; in all other cases it will wrap an
underlying RepositoryException.public void copyProperties(java.lang.Object pSource, java.lang.Object pDest, java.util.Properties pPropertyMap) throws InvoiceException
DynamicBeans
can be used to set or
get property values, which implies that either or both of the objects
can be repository items if desired.pSource
- The source object from which property values being copied.pDest
- The destination object to which property values are being copied.pPropertyMap
- A mapping of source property name to destination property name.
Each name in the map corresponds to a property of the source object
whose value should be copied, the corresponding value in the map
is the name of the destination property on the destination object.
Either or both of the property names may include dotted subproperty
notation, allowing entries of the form
telephoneNumber=deliveryInfo.phoneNumber
in the property map.
InvoiceException
- if any error occurs getting property values from the source object
or setting them on the destination object