Class BeanResource

java.lang.Object
com.zfabrik.resources.provider.Resource
com.zfabrik.impl.springframework.BeanResource

public class BeanResource extends Resource
Resource abstraction for Spring bean from application context. Simply serves whatever the bean implements.

This resource implements components of type org.springframework.bean.

Configuration properties

bean.context
Identifies the context component (of type org.springframework.context, see ContextResource) that defines the bean.
bean.name
Name of the bean in the context mentioned above.

For example, a bean component declaration may look like this:

 com.zfabrik.component.type=org.springframework.bean
 #
 # the context that defines the bean (more than one
 # bean can be exposed like this)
 #
 bean.context=com.acme.myproject/applicationContext
 #
 # the bean name
 #
 bean.name=myBean