public class AbstractBeanAdapter extends BeanAdapter
Constructor and Description |
---|
AbstractBeanAdapter(BeanAdapterFactory beanAdapterFactory,
org.jboss.beans.info.spi.BeanInfo beanInfo,
org.jboss.reflect.spi.MethodInfo factory)
Create a new AbstractBeanAdapter.
|
Modifier and Type | Method and Description |
---|---|
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
|
getAvailable, getBeanAdapterFactory, getPropertyHandler, getWildcardHandler
public AbstractBeanAdapter(BeanAdapterFactory beanAdapterFactory, org.jboss.beans.info.spi.BeanInfo beanInfo, org.jboss.reflect.spi.MethodInfo factory)
beanAdapterFactory
- the bean adapter factorybeanInfo
- the bean infofactory
- the factoryIllegalArgumentException
- for null bean adapter factory or bean infopublic org.jboss.beans.info.spi.BeanInfo getBeanInfo()
public org.jboss.reflect.spi.MethodInfo getFactory()
public Object get(org.jboss.beans.info.spi.PropertyInfo propertyInfo) throws Throwable
BeanAdapter
get
in class BeanAdapter
propertyInfo
- the property infoThrowable
- for any errorpublic void set(org.jboss.beans.info.spi.PropertyInfo propertyInfo, Object child) throws Throwable
BeanAdapter
set
in class BeanAdapter
propertyInfo
- the property infochild
- the valueThrowable
- for any errorpublic Object getValue()
BeanAdapter
getValue
in class BeanAdapter
protected Object construct()
protected void ensureConstructed()
Copyright © 2016 JBoss by Red Hat. All rights reserved.