jodd.bean.loader
Class SessionBeanLoader

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

public class SessionBeanLoader
extends BaseBeanLoader

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


Field Summary
protected  java.lang.String prefix
           
 
Fields inherited from class jodd.bean.loader.BaseBeanLoader
beanUtilBean
 
Constructor Summary
SessionBeanLoader()
           
SessionBeanLoader(java.lang.String prefix)
           
 
Method Summary
 void load(java.lang.Object bean, java.lang.Object source)
          Loads values from given source into the destination bean.
 
Methods inherited from class jodd.bean.loader.BaseBeanLoader
getBeanUtilBean, setBeanUtilBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefix

protected final java.lang.String prefix
Constructor Detail

SessionBeanLoader

public SessionBeanLoader()

SessionBeanLoader

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

load

public void load(java.lang.Object bean,
                 java.lang.Object source)
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.

Parameters:
bean - destination instance that will be populated
source - object to populate from


Copyright © 2003-2012 Jodd Team