JBoss XML Binding 2.0.3.GA

org.jboss.xb.spi
Class AbstractBeanAdapter

java.lang.Object
  extended by org.jboss.xb.spi.BeanAdapter
      extended by org.jboss.xb.spi.AbstractBeanAdapter

public class AbstractBeanAdapter
extends BeanAdapter

AbstractBeanAdapter.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
AbstractBeanAdapter(BeanAdapterFactory beanAdapterFactory, org.jboss.beans.info.spi.BeanInfo beanInfo, org.jboss.reflect.spi.MethodInfo factory)
          Create a new AbstractBeanAdapter.
 
Method Summary
protected  Object construct()
          Construct the object
protected  void ensureConstructed()
          Ensure the object has been constructed
 Object get(org.jboss.beans.info.spi.PropertyInfo propertyInfo)
          Get a property
 org.jboss.beans.info.spi.BeanInfo getBeanInfo()
          Get the bean info
 org.jboss.reflect.spi.MethodInfo getFactory()
          Get the factory
 Object getValue()
          Get the value
 void set(org.jboss.beans.info.spi.PropertyInfo propertyInfo, Object child)
          Set a property
 
Methods inherited from class org.jboss.xb.spi.BeanAdapter
getAvailable, getBeanAdapterFactory, getPropertyHandler, getWildcardHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBeanAdapter

public AbstractBeanAdapter(BeanAdapterFactory beanAdapterFactory,
                           org.jboss.beans.info.spi.BeanInfo beanInfo,
                           org.jboss.reflect.spi.MethodInfo factory)
Create a new AbstractBeanAdapter.

Parameters:
beanAdapterFactory - the bean adapter factory
beanInfo - the bean info
factory - the factory
Throws:
IllegalArgumentException - for null bean adapter factory or bean info
Method Detail

getBeanInfo

public org.jboss.beans.info.spi.BeanInfo getBeanInfo()
Get the bean info

Returns:
the bean info

getFactory

public org.jboss.reflect.spi.MethodInfo getFactory()
Get the factory

Returns:
the factgory

get

public Object get(org.jboss.beans.info.spi.PropertyInfo propertyInfo)
           throws Throwable
Description copied from class: BeanAdapter
Get a property

Specified by:
get in class BeanAdapter
Parameters:
propertyInfo - the property info
Returns:
the property value
Throws:
Throwable - for any error

set

public void set(org.jboss.beans.info.spi.PropertyInfo propertyInfo,
                Object child)
         throws Throwable
Description copied from class: BeanAdapter
Set a property

Specified by:
set in class BeanAdapter
Parameters:
propertyInfo - the property info
child - the value
Throws:
Throwable - for any error

getValue

public Object getValue()
Description copied from class: BeanAdapter
Get the value

Specified by:
getValue in class BeanAdapter
Returns:
the value

construct

protected Object construct()
Construct the object

Returns:
the value

ensureConstructed

protected void ensureConstructed()
Ensure the object has been constructed


JBoss XML Binding 2.0.3.GA

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.