com.extjs.gxt.ui.client.data
Class BeanModelLookup

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.BeanModelLookup

public abstract class BeanModelLookup
extends java.lang.Object

Returns BeanModelFactories for java beans. Java beans can be converted to "models" via 2 methods. The first method requires a new interface that extends BeanModelMarker and uses annotations. This method does not require the JavaBean to be modified. With the second method, your Java Bean implements the BeanModelTag interface.

See Also:
BeanModelMarker, BeanModelTag

Constructor Summary
BeanModelLookup()
           
 
Method Summary
static BeanModelLookup get()
          Returns the singleton bean model lookup.
abstract  BeanModelFactory getFactory(java.lang.Class<?> bean)
          Returns the factory for the given bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanModelLookup

public BeanModelLookup()
Method Detail

get

public static BeanModelLookup get()
Returns the singleton bean model lookup.

Returns:
the singleton instance

getFactory

public abstract BeanModelFactory getFactory(java.lang.Class<?> bean)
Returns the factory for the given bean.

Parameters:
bean - the bean class
Returns:
the factory