org.sapia.regis.bean
Class BeanFactory

java.lang.Object
  extended by org.sapia.regis.bean.BeanFactory

public class BeanFactory
extends Object

An instance of this class allows wrapping a Node in a dynamic proxy that implements a given interface. The interface must have getter methods that correspond to the name of the properties on the given node.

Author:
yduchesne

Constructor Summary
BeanFactory()
           
 
Method Summary
static Object newBeanInstanceFor(Registry reg, Node node, Class interf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanFactory

public BeanFactory()
Method Detail

newBeanInstanceFor

public static Object newBeanInstanceFor(Registry reg,
                                        Node node,
                                        Class interf)
Parameters:
reg - the Registry from which the given node originates.
node - a Node.
interf - a user-defined interface.
Returns:


Copyright © 2006 Sapia Open Community, Inc. All Rights Reserved.