uk.ltd.getahead.dwr.convert
Class HibernateBeanConverter

java.lang.Object
  extended byuk.ltd.getahead.dwr.compat.BaseV10Converter
      extended byuk.ltd.getahead.dwr.convert.BeanConverter
          extended byuk.ltd.getahead.dwr.convert.HibernateBeanConverter
All Implemented Interfaces:
Converter

public class HibernateBeanConverter
extends BeanConverter

BeanConverter that works with Hibernate3 to get BeanInfo.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
HibernateBeanConverter()
          Simple ctor
 
Method Summary
 boolean isAvailable(java.lang.Object data, java.lang.String property)
          Some child converters (like Hibernate at least) need to check that a property should be marshalled.
 
Methods inherited from class uk.ltd.getahead.dwr.convert.BeanConverter
convertInbound, convertOutbound, getConverterManager, getInstanceType, setConverterManager, setExclude, setImplementation, setInclude, setInstanceType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateBeanConverter

public HibernateBeanConverter()
                       throws java.lang.ClassNotFoundException
Simple ctor

Throws:
java.lang.ClassNotFoundException - If Hibernate can not be configured
Method Detail

isAvailable

public boolean isAvailable(java.lang.Object data,
                           java.lang.String property)
Description copied from class: BeanConverter
Some child converters (like Hibernate at least) need to check that a property should be marshalled. This allows them to veto a marshal

Overrides:
isAvailable in class BeanConverter
Parameters:
data - The object to check on
property - The property of the data object
Returns:
true if we should continue and marshall it.

Copyright ? 2005