com.codestreet.messageforge
Class BeanFactory

java.lang.Object
  extended bycom.codestreet.messageforge.BeanFactory

public abstract class BeanFactory
extends java.lang.Object

Author:
jawaid.hakim

Field Summary
static boolean processPrivateArrays
           
 
Constructor Summary
BeanFactory()
           
 
Method Summary
static RBeanInfo createBeanInfo(java.lang.String name, java.lang.Class bean)
          Create bean information using reflection.
static void setAccessPrivateArrays(boolean flag)
          Set flag to indicate whether private array fields should be accessed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processPrivateArrays

public static boolean processPrivateArrays
Constructor Detail

BeanFactory

public BeanFactory()
Method Detail

createBeanInfo

public static RBeanInfo createBeanInfo(java.lang.String name,
                                       java.lang.Class bean)
Create bean information using reflection. All public getter/setter pairs are identified. In addition, if private array support has been requested then all getter/setter pairs that operate on arrays are also identified.

Parameters:
name - Bean name.
bean - Bean class.
Returns:
Bean information.
See Also:
setAccessPrivateArrays(boolean)

setAccessPrivateArrays

public static void setAccessPrivateArrays(boolean flag)
Set flag to indicate whether private array fields should be accessed. When this flag is set to true the bean factory identifies private getter/setter pais that operate on arrays. An attempt is made to set the accessibility for each identified pair to true. If the attempt to set the accessibility succeeds then the private getter/setter pair is added to the bean's information set.

Parameters:
flag - Flag to indicate whether private array fields should be accessed. Default is true. If this is set to true then private array fields will be accessed.
See Also:
createBeanInfo(String, Class)


Copyright © 2003-2006 CodeStreet. All Rights Reserved.