org.jboss.xb.builder.runtime
Class WrapperBeanAdapter

java.lang.Object
  extended by org.jboss.xb.spi.BeanAdapter
      extended by org.jboss.xb.builder.runtime.WrapperBeanAdapter

public class WrapperBeanAdapter
extends BeanAdapter

WrapperBeanAdapter.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
WrapperBeanAdapter(WrapperBeanAdapterFactory beanAdapterFactory, BeanAdapter wrapped)
          Create a new WrapperBeanAdapter.
 
Method Summary
 Object get(org.jboss.beans.info.spi.PropertyInfo propertyInfo)
          Get a property
protected  WrapperBeanAdapterFactory getBeanAdapterFactory()
          Get the bean adapter 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, getPropertyHandler, getWildcardHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperBeanAdapter

public WrapperBeanAdapter(WrapperBeanAdapterFactory beanAdapterFactory,
                          BeanAdapter wrapped)
Create a new WrapperBeanAdapter.

Parameters:
beanAdapterFactory - our factory
wrapped - the wrapped adapter
Method Detail

getBeanAdapterFactory

protected WrapperBeanAdapterFactory getBeanAdapterFactory()
Description copied from class: BeanAdapter
Get the bean adapter factory

Overrides:
getBeanAdapterFactory in class BeanAdapter
Returns:
the factory

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

getValue

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

Specified by:
getValue in class BeanAdapter
Returns:
the value

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


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