Methods Summary |
---|
public java.lang.Object | clone()
ConfigBeanInterceptor cbiClone = new DefaultConfigBeanInterceptor();
cbiClone.setResolvingPaths(this.isResolvingPaths());
return cbiClone;
|
public boolean | isResolvingPaths()
return _isResolvingPaths;
|
public void | postClone(java.lang.Object o)
setResolvingPaths(((Boolean)o).booleanValue());
|
public java.lang.String | postGetAttributeValue(java.lang.String name, java.lang.String res)
if (isResolvingPaths()) {
return resolveStringTokens(res);
} else {
return res;
}
|
public java.lang.Object | postGetValue(com.sun.enterprise.config.ConfigBean cb, java.lang.String name, java.lang.Object res)
return resolveTokensForString(res);
|
public java.lang.Object[] | postGetValues(java.lang.String name, java.lang.Object[] res)
// only needed in one place so don't call separate method
if (isResolvingPaths()&& res != null && res instanceof String[]) {
// loop through and resolve tokens
for(int ii=0; ii < res.length; ii++) {
res[ii]=resolveStringTokens((String)res[ii]);
}
}
return res;
|
public java.lang.Object | preClone()
boolean orig = isResolvingPaths();
setResolvingPaths(false);
return Boolean.valueOf(orig);
|
public java.lang.String | resolveStringTokens(java.lang.String string)General method to resolve tokens for string that are in attributes
and Text elements
return RelativePathResolver.resolvePath(string);
|
public java.lang.Object | resolveTokensForString(java.lang.Object value)Resolve tokens for an element value that is a string
Broken into a separate method because called in numerous places
if (isResolvingPaths() && value != null && value instanceof String) {
return resolveStringTokens((String)value);
}
return value;
|
public void | setResolvingPaths(boolean isResolvingPaths)
_isResolvingPaths = isResolvingPaths;
|
public java.lang.String | toString()NOTE: This method returns wrong values sometimes
when a clone is in process
return "{resolvingPaths=" + isResolvingPaths() + "}";
|