org.progeeks.meta.beans
Class BeanMetaKit

java.lang.Object
  extended by org.progeeks.meta.beans.BeanMetaKit
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, MetaKit

public class BeanMetaKit
extends java.lang.Object
implements MetaKit, java.io.Externalizable

MetaKit implementation providing access to the implementation features of the implementation layer.

Version:
$Revision: 1.10 $
Author:
Paul Speed
See Also:
Serialized Form

Constructor Summary
BeanMetaKit()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getInternalObject(MetaObject object)
          Returns the internal object representation for the specified meta-object if one exists.
 MetaClass getMetaClassForObject(java.lang.Object object)
          Returns the appropriate meta-class for the specified object.
 MetaClass getMetaClassForObject(java.lang.Object object, MetaClassRegistry classRegistry)
          Returns the appropriate meta-class for the specified object.
 MetaObjectFactory getMetaObjectFactory()
          Returns a factory that can be used to create new MetaObject based values using this kit's underlying implementation.
 int hashCode()
           
 void readExternal(java.io.ObjectInput in)
          Don't read anything because nothing was written.
 MetaObject wrapObject(java.lang.Object object, MetaClass mClass)
          Wraps the specified object in a meta-object adapter specific to this kit's implementation layer.
 void writeExternal(java.io.ObjectOutput out)
          Don't write anything because there's no point.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanMetaKit

public BeanMetaKit()
Method Detail

getInternalObject

public java.lang.Object getInternalObject(MetaObject object)
Returns the internal object representation for the specified meta-object if one exists. For meta-object implementations that wrap an internal object, this will return the internal object. null is returned if the meta-object implementation does not internally wrap real objects.

Specified by:
getInternalObject in interface MetaKit

getMetaClassForObject

public MetaClass getMetaClassForObject(java.lang.Object object,
                                       MetaClassRegistry classRegistry)
Returns the appropriate meta-class for the specified object. If an appropriate meta-class has not been registered then this method returns null.

Specified by:
getMetaClassForObject in interface MetaKit

getMetaClassForObject

public MetaClass getMetaClassForObject(java.lang.Object object)
Returns the appropriate meta-class for the specified object. If an appropriate meta-class has not been registered then this method returns null.

Specified by:
getMetaClassForObject in interface MetaKit

wrapObject

public MetaObject wrapObject(java.lang.Object object,
                             MetaClass mClass)
Wraps the specified object in a meta-object adapter specific to this kit's implementation layer. Returns null if the object cannot be wrapped. Throws UnsupportedOperationException if this kit doesn't support wrapping.

Specified by:
wrapObject in interface MetaKit

getMetaObjectFactory

public MetaObjectFactory getMetaObjectFactory()
Returns a factory that can be used to create new MetaObject based values using this kit's underlying implementation.

Specified by:
getMetaObjectFactory in interface MetaKit

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Don't read anything because nothing was written.

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Don't write anything because there's no point.

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2002-2003 Paul Speed. All Rights Reserved.