| |
|
| java.lang.Object org.directwebremoting.create.AbstractCreator org.directwebremoting.spring.BeanCreator
BeanCreator | public class BeanCreator extends AbstractCreator implements BeanFactoryAware,InitializingBean(Code) | | A creator that proxies to the specified bean.
Note that it can be configured with additional include rules,
exclude rules, filters and authentication rules using the
specified creator configuration.
See Also: CreatorConfig author: Bram Smeets |
Method Summary | |
public void | afterPropertiesSet() Is called by the Spring container after all properties have been set. | public CreatorConfig | getConfig() Gets the configuration for this creator. | public Object | getInstance() Accessor for the instance of this creator. | public Class> | getType() Accessor for the class that this creator allows access to. | public void | setBean(Object bean) Sets the bean for this bean creator. | public void | setBeanClass(Class> beanClass) Sets the bean class for this creator. | public void | setBeanFactory(BeanFactory beanFactory) Sets the bean factory that contains this BeanCreator. | public void | setBeanId(String beanId) Sets the id of the bean to remote using DWR. | public void | setConfig(CreatorConfig config) Sets the configuration for this creator. |
afterPropertiesSet | public void afterPropertiesSet()(Code) | | Is called by the Spring container after all properties have been set.
It is implemented in order to initialize the beanClass field correctly and to make sure
that either the bean id or the bean itself have been set on this creator.
See Also: org.springframework.beans.factory.InitializingBean |
getConfig | public CreatorConfig getConfig()(Code) | | Gets the configuration for this creator.
the configuration for this creator |
getInstance | public Object getInstance()(Code) | | Accessor for the instance of this creator.
It returns the specified bean property.
the bean instance of this creator |
getType | public Class> getType()(Code) | | Accessor for the class that this creator allows access to.
It returns the class specified by the beanClass
property. In case no class name has been set, it returns the
class of the specified bean.
the type of this allowed class |
setBean | public void setBean(Object bean)(Code) | | Sets the bean for this bean creator.
Parameters: bean - the bean for this creator |
setBeanClass | public void setBeanClass(Class> beanClass)(Code) | | Sets the bean class for this creator.
Use this property to specify a different class or interface for
instance in case the specified bean is a proxy or implementation
and we want to expose the interface.
Parameters: beanClass - the class of the bean to remote |
setBeanFactory | public void setBeanFactory(BeanFactory beanFactory) throws BeansException(Code) | | Sets the bean factory that contains this BeanCreator.
Parameters: beanFactory - the beanFactory that created this BeanCreator See Also: org.springframework.beans.factory.BeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory) |
setBeanId | public void setBeanId(String beanId)(Code) | | Sets the id of the bean to remote using DWR.
Either set this property on the creator, or set the bean to be
remoted directly on this creator.
Parameters: beanId - the id of the bean to remote |
|
|
|