org.jboss.managed.spi.factory
Interface InstanceClassFactory<T extends Serializable>

Type Parameters:
T - actual attachment type
All Known Implementing Classes:
AbstractInstanceClassFactory, AbstractManagedObjectFactory, ManagementProperty.NULL_MARSHALLER_FACTORY

public interface InstanceClassFactory<T extends Serializable>

A plugin for obtaining the class to scan for management object related annotations.

Version:
$Revision: 66238 $
Author:
Scott.Stark@jboss.org, Ales.Justin@jboss.org

Method Summary
 Object getComponentName(org.jboss.beans.info.spi.BeanInfo beanInfo, ManagedProperty property, T attachment, org.jboss.metatype.api.values.MetaValue value)
          Get the runtime component name.
 Class<? extends Serializable> getManagedObjectClass(T attachment)
          Return the Class that represents the root ManagedObject to scan for management object related annotations.
 org.jboss.metatype.api.values.MetaValue getValue(org.jboss.beans.info.spi.BeanInfo beanInfo, ManagedProperty property, T attachment)
          Get the value from object.
 void setValue(org.jboss.beans.info.spi.BeanInfo beanInfo, ManagedProperty property, T attachment, org.jboss.metatype.api.values.MetaValue value)
          Set the value to object.
 

Method Detail

getManagedObjectClass

Class<? extends Serializable> getManagedObjectClass(T attachment)
                                                    throws ClassNotFoundException
Return the Class that represents the root ManagedObject to scan for management object related annotations.

Parameters:
attachment - - the instance a ManagedObject is to be created for.
Returns:
the Class that represents the root ManagedObject.
Throws:
ClassNotFoundException - if MO class not found

getValue

org.jboss.metatype.api.values.MetaValue getValue(org.jboss.beans.info.spi.BeanInfo beanInfo,
                                                 ManagedProperty property,
                                                 T attachment)
Get the value from object.

Parameters:
beanInfo - managed object's bean info
property - managed property
attachment - attachment
Returns:
meta value

setValue

void setValue(org.jboss.beans.info.spi.BeanInfo beanInfo,
              ManagedProperty property,
              T attachment,
              org.jboss.metatype.api.values.MetaValue value)
Set the value to object.

Parameters:
beanInfo - managed object's bean info
property - managed property
attachment - attachment
value - meta value

getComponentName

Object getComponentName(org.jboss.beans.info.spi.BeanInfo beanInfo,
                        ManagedProperty property,
                        T attachment,
                        org.jboss.metatype.api.values.MetaValue value)
Get the runtime component name.

Parameters:
beanInfo - managed object's bean info
property - managed property
attachment - attachment
value - original value
Returns:
meta value


Copyright © 2008 JBoss Inc.. All Rights Reserved.