org.progeeks.meta
Interface MetaKit

All Known Implementing Classes:
BeanMetaKit, CompositeMetaKit, MapMetaKit, MBeanMetaKit, PreferencesMetaKit

public interface MetaKit

Abstraction of a meta-object implementation layer. This provides some direct access to the adapter layer that may be necessary when interacting with certain meta-object property values.

Version:
$Revision: 1.2 $
Author:
Paul Speed

Method Summary
 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.
 MetaObject wrapObject(java.lang.Object object, MetaClass mClass)
          Wraps the specified object in a meta-object adapter specific to this kit's implementation layer.
 

Method Detail

getInternalObject

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.


getMetaClassForObject

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.


getMetaClassForObject

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. The meta-class is looked up in the root class registry.


wrapObject

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.


getMetaObjectFactory

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



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