org.argouml.model.uml
Class RefBaseObjectProxy
java.lang.Object
org.argouml.model.uml.RefBaseObjectProxy
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler, javax.jmi.reflect.RefBaseObject
- Direct Known Subclasses:
- RefPackageProxy
- public class RefBaseObjectProxy
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler, javax.jmi.reflect.RefBaseObject
Field Summary |
private static org.apache.log4j.Logger |
_cat
|
private java.lang.Object |
_realObject
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jmi.reflect.RefBaseObject |
equals, hashCode |
_cat
private static final org.apache.log4j.Logger _cat
_realObject
private java.lang.Object _realObject
RefBaseObjectProxy
public RefBaseObjectProxy(java.lang.Object obj)
- Parameters:
obj
- The object to proxy
getProxiedObject
public static java.lang.Object getProxiedObject(RefBaseObjectProxy o)
- Returns the actual object which was proxied.
- Parameters:
o
- proxied object to extract from
- Returns:
- the realObject behind the proxy
newInstance
public static java.lang.Object newInstance(java.lang.Object obj)
- Creates a new instance of the proxied object.
- Parameters:
obj
- to proxy
- Returns:
- a proxy object if obj does not already implement the interface.
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
- See Also:
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
refMetaObject
public javax.jmi.reflect.RefObject refMetaObject()
- Specified by:
refMetaObject
in interface javax.jmi.reflect.RefBaseObject
- See Also:
RefBaseObject.refMetaObject()
refImmediatePackage
public javax.jmi.reflect.RefPackage refImmediatePackage()
- Specified by:
refImmediatePackage
in interface javax.jmi.reflect.RefBaseObject
- See Also:
RefBaseObject.refImmediatePackage()
refOutermostPackage
public javax.jmi.reflect.RefPackage refOutermostPackage()
- Specified by:
refOutermostPackage
in interface javax.jmi.reflect.RefBaseObject
- See Also:
RefBaseObject.refOutermostPackage()
refMofId
public java.lang.String refMofId()
- Specified by:
refMofId
in interface javax.jmi.reflect.RefBaseObject
- See Also:
RefBaseObject.refMofId()
refVerifyConstraints
public java.util.Collection refVerifyConstraints(boolean arg0)
- Specified by:
refVerifyConstraints
in interface javax.jmi.reflect.RefBaseObject
- See Also:
RefBaseObject.refVerifyConstraints(boolean)
getRealObject
protected java.lang.Object getRealObject()
- Returns:
- the proxied object