.
| Method from org.apache.openjpa.lib.conf.ObjectValue Detail: |
public Object get() {
return _value;
}
|
protected String getInternalString() {
return null;
}
|
public Class getValueType() {
return Object.class;
}
|
public Object instantiate(Class type,
Configuration conf) {
return instantiate(type, conf, true);
}
Instantiate the object as an instance of the given class. Equivalent
to instantiate(type, conf, true). |
public Object instantiate(Class type,
Configuration conf,
boolean fatal) {
throw new UnsupportedOperationException();
}
Instantiate the object as an instance of the given class. |
public Object newInstance(String clsName,
Class type,
Configuration conf,
boolean fatal) {
ClassLoader cl = (ClassLoader) _classloaderCache.get(type);
if (cl == null) {
cl = (ClassLoader) AccessController.doPrivileged(
J2DoPrivHelper.getClassLoaderAction(type));
if (cl == null) { // System classloader is returned as null
cl = (ClassLoader) AccessController.doPrivileged(
J2DoPrivHelper.getSystemClassLoaderAction());
}
_classloaderCache.put(type, cl);
}
return Configurations.newInstance(clsName, this, conf, cl, fatal);
}
Allow subclasses to instantiate additional plugins. This method does
not perform configuration. |
protected void objectChanged() {
}
Implement this method to synchronize internal data with the new
object value. |
public void set(Object obj) {
set(obj, false);
}
|
public void set(Object obj,
boolean derived) {
if (!derived) assertChangeable();
Object oldValue = _value;
_value = obj;
if (!derived && !ObjectUtils.equals(obj, oldValue)) {
objectChanged();
valueChanged();
}
}
|
protected void setInternalObject(Object obj) {
set(obj);
}
|
protected void setInternalString(String str) {
if (str == null)
set(null);
else
throw new IllegalArgumentException(_loc.get("cant-set-string",
getProperty()).getMessage());
}
|