net.sf.swan.xml.input.reflect
Class BeanMapper

java.lang.Object
  |
  +--net.sf.swan.xml.input.reflect.BeanMapper

public class BeanMapper
extends java.lang.Object


Constructor Summary
BeanMapper(java.lang.Class beanType)
           
 
Method Summary
 ContextListener getPropertyAdapter(java.lang.String name)
          Method for obtaining a ContextListener to handle a specific JavaBean property.
 ContextListener property(java.lang.String name)
          Fail-fast method for obtaining a ContextListener to handle a specific JavaBean property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanMapper

public BeanMapper(java.lang.Class beanType)
           throws java.beans.IntrospectionException
Method Detail

getPropertyAdapter

public ContextListener getPropertyAdapter(java.lang.String name)
Method for obtaining a ContextListener to handle a specific JavaBean property. This will never throw an exception, but it may return null.
See Also:
property(String)

property

public ContextListener property(java.lang.String name)
                         throws NoSuchPropertyException
Fail-fast method for obtaining a ContextListener to handle a specific JavaBean property. This will throw an exception if it cannot provide a suitable adapter and will never return null.
Throws:
NoSuchPropertyException - if the associated bean type has no such property.
See Also:
getPropertyAdapter(String)