jodd.bean.loader
Class ServletContextBeanLoader

java.lang.Object
  extended by jodd.bean.loader.ServletContextBeanLoader
All Implemented Interfaces:
BeanLoader

public class ServletContextBeanLoader
extends java.lang.Object
implements BeanLoader

Populates java bean from ServletContext objects. It allows to be instanced with a 'prefix' that will be added in front of all attributes.


Constructor Summary
ServletContextBeanLoader()
           
ServletContextBeanLoader(java.lang.String prefix)
           
 
Method Summary
 void load(java.lang.Object bean, java.lang.Object context)
          Loads values from given source into the destination bean.
static void loadBean(java.lang.Object bean, java.lang.Object context, java.lang.String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletContextBeanLoader

public ServletContextBeanLoader()

ServletContextBeanLoader

public ServletContextBeanLoader(java.lang.String prefix)
Method Detail

loadBean

public static void loadBean(java.lang.Object bean,
                            java.lang.Object context,
                            java.lang.String prefix)

load

public void load(java.lang.Object bean,
                 java.lang.Object context)
Description copied from interface: BeanLoader
Loads values from given source into the destination bean. All properties from source object will be iterated to be set into the destination.

Specified by:
load in interface BeanLoader
Parameters:
bean - instance that will be populated
context - object to populate from


Copyright ©2008 Jodd Team