|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguiraffe.gui.builder.impl.JellyContextBeanStore
public class JellyContextBeanStore
A specialized implementation of the BeanStore interface that
is backed by a Jelly context.
This class provides access to the variables stored in a Jelly context through
the methods defined by the interface. This
way a Jelly context (e.g. initialized by a builder operation) can
transparently be used by the dependency injection framework.
BeanStore
| Constructor Summary | |
|---|---|
JellyContextBeanStore(org.apache.commons.jelly.JellyContext ctx,
BeanStore parentStore)
Creates a new instance of JellyContextBeanStore and
initializes it with the underlying Jelly context and the parent bean
store. |
|
JellyContextBeanStore(org.apache.commons.jelly.JellyContext ctx,
BeanStore parentStore,
java.lang.String storeName)
Creates a new instance of JellyContextBeanStore and
initializes it with the underlying Jelly context, the parent bean store
and the name to be used. |
|
| Method Summary | |
|---|---|
BeanProvider |
getBeanProvider(java.lang.String name)
Returns a BeanProvider for accessing the bean with the
given name. |
org.apache.commons.jelly.JellyContext |
getContext()
Returns the underlying Jelly context. |
java.lang.String |
getName()
Returns the name of this bean store. |
BeanStore |
getParent()
Returns the parent bean store. |
java.util.Set<java.lang.String> |
providerNames()
Returns a set with the names of the existing BeanProviders. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JellyContextBeanStore(org.apache.commons.jelly.JellyContext ctx,
BeanStore parentStore,
java.lang.String storeName)
JellyContextBeanStore and
initializes it with the underlying Jelly context, the parent bean store
and the name to be used.
ctx - the Jelly context (must not be null)parentStore - the parent storestoreName - the name
java.lang.IllegalArgumentException - if the passed in Jelly context is
null
public JellyContextBeanStore(org.apache.commons.jelly.JellyContext ctx,
BeanStore parentStore)
JellyContextBeanStore and
initializes it with the underlying Jelly context and the parent bean
store. For the name a default value is used.
ctx - the Jelly context (must not be null)parentStore - the parent store| Method Detail |
|---|
public org.apache.commons.jelly.JellyContext getContext()
public BeanProvider getBeanProvider(java.lang.String name)
BeanProvider for accessing the bean with the
given name. This implementation checks whether the Jelly context contains
a variable with the given name. If this is the case, a bean provider
serving this value is returned. Otherwise the result of this method is
null.
getBeanProvider in interface BeanStorename - the name of the desired bean
BeanProvider for this beanpublic java.lang.String getName()
getName in interface BeanStorepublic BeanStore getParent()
getParent in interface BeanStorepublic java.util.Set<java.lang.String> providerNames()
BeanProviders.
This implementation returns a set with the names of the variables defined
in the underlying Jelly context.
providerNames in interface BeanStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||