|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.directwebremoting.create.AbstractCreator
org.directwebremoting.spring.SpringCreator
public class SpringCreator
A creator that relies on a spring bean factory.
Field Summary |
---|
Fields inherited from interface org.directwebremoting.extend.Creator |
---|
APPLICATION, PAGE, REQUEST, SCRIPT, SESSION |
Constructor Summary | |
---|---|
SpringCreator()
|
Method Summary | |
---|---|
java.lang.String |
getBeanName()
|
java.lang.Object |
getInstance()
Accessor for the/an instance of this Creator. |
java.lang.Class |
getType()
Accessor for the java.lang.Class that this Creator
allows access to. |
void |
setBeanName(java.lang.String beanName)
|
void |
setClass(java.lang.String classname)
What sort of class do we create? |
static void |
setOverrideBeanFactory(BeanFactory factory)
Set a web-app wide BeanFactory. |
void |
setProperties(java.util.Map params)
DefaultConfiguration is done via access to the DOM Element. |
static void |
setXmlBeanFactory(BeanFactory factory)
Deprecated. This method is misnamed use setOverrideBeanFactory |
Methods inherited from class org.directwebremoting.create.AbstractCreator |
---|
checkScope, getJavascript, getScope, isCacheable, setCacheable, setJavascript, setScope, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.directwebremoting.extend.Creator |
---|
getJavascript, getScope, isCacheable |
Constructor Detail |
---|
public SpringCreator()
Method Detail |
---|
public java.lang.String getBeanName()
public void setBeanName(java.lang.String beanName)
beanName
- The beanName to set.public void setClass(java.lang.String classname)
classname
- The name of the classpublic void setProperties(java.util.Map params) throws java.lang.IllegalArgumentException
Creator
setProperties
in interface Creator
setProperties
in class AbstractCreator
params
- The map of paramters to configure the creator
java.lang.IllegalArgumentException
- If the config data in the Element is invalidpublic java.lang.Class getType()
Creator
java.lang.Class
that this Creator
allows access to.
getType
in interface Creator
public java.lang.Object getInstance() throws java.lang.InstantiationException
Creator
getInstance
in interface Creator
java.lang.InstantiationException
- If for some reason the object can not be createdpublic static void setXmlBeanFactory(BeanFactory factory)
factory
- The factory to set.public static void setOverrideBeanFactory(BeanFactory factory)
factory
- The factory to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |