|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.opensuit.core.util.BeanUtils
public class BeanUtils
Helper class to manage beans in open SUIT applications.
Constructor Summary | |
---|---|
BeanUtils()
|
Method Summary | ||
---|---|---|
static
|
getBean(javax.servlet.http.HttpServletRequest iRequest,
java.lang.Class<T> iClass,
java.lang.String iName,
org.ow2.opensuit.xml.base.enums.Scope iScope)
Returns the bean instance with given name. |
|
static java.lang.Object |
getOpenSuitBean(javax.servlet.http.HttpServletRequest iRequest,
java.lang.String iBeanName)
Returns the bean instance from the name declared in the open SUIT xml. |
|
static void |
setBean(javax.servlet.http.HttpServletRequest iRequest,
java.lang.Object iBean,
java.lang.String iName,
org.ow2.opensuit.xml.base.enums.Scope iScope)
Sets a bean instance with given name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanUtils()
Method Detail |
---|
public static java.lang.Object getOpenSuitBean(javax.servlet.http.HttpServletRequest iRequest, java.lang.String iBeanName) throws java.lang.Exception
iRequest
- The current Http requestiBeanName
- The bean name registered in open SUIT configuration.
java.lang.Exception
public static <T> T getBean(javax.servlet.http.HttpServletRequest iRequest, java.lang.Class<T> iClass, java.lang.String iName, org.ow2.opensuit.xml.base.enums.Scope iScope)
T
- The bean class.iRequest
- The current Http requestiClass
- The bean class.iName
- The bean name.iScope
- The bean scope.
public static void setBean(javax.servlet.http.HttpServletRequest iRequest, java.lang.Object iBean, java.lang.String iName, org.ow2.opensuit.xml.base.enums.Scope iScope)
iRequest
- The current Http requestiBean
- The bean instance.iName
- The bean name.iScope
- The bean scope.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |