Uses of Interface
net.sf.jguiraffe.di.BeanStore
-
Packages that use BeanStore Package Description net.sf.jguiraffe.di DI stands for Dependency Injection.net.sf.jguiraffe.di.impl This package contains various implementations for the interfaces defined in the maindi
package.net.sf.jguiraffe.di.impl.providers In theproviders
sub package different implementations of theBeanProvider
interface can be found.net.sf.jguiraffe.gui.app In this package the main application class can be found.net.sf.jguiraffe.gui.builder The main package of the builder.net.sf.jguiraffe.gui.builder.di The builder.di package contains fundamental classes for defining beans and services in a Jelly script.net.sf.jguiraffe.gui.builder.impl Here default implementations of theBuilder
interfaces can be found. -
-
Uses of BeanStore in net.sf.jguiraffe.di
Subinterfaces of BeanStore in net.sf.jguiraffe.di Modifier and Type Interface Description interface
MutableBeanStore
Definition of an interface for aBeanStore
that can be manipulated.Methods in net.sf.jguiraffe.di that return BeanStore Modifier and Type Method Description BeanStore
BeanContext. getDefaultBeanStore()
Returns the default bean store.BeanStore
BeanStore. getParent()
Returns a reference to the parentBeanStore
.Methods in net.sf.jguiraffe.di with parameters of type BeanStore Modifier and Type Method Description Set<Class<?>>
BeanContext. beanClasses(BeanStore store)
Returns a set with the classes of all beans defined in the givenBeanStore
.String
BeanContext. beanNameFor(BeanProvider beanProvider, BeanStore store)
Returns the name of the bean that is managed by the specifiedBeanProvider
, starting search in the specifiedBeanStore
.Set<String>
BeanContext. beanNames(BeanStore store)
Returns a set with the names of all beans defined in the givenBeanStore
.boolean
BeanContext. containsBean(Class<?> beanClass, BeanStore store)
Checks whether the specifiedBeanStore
contains a bean with the given class.boolean
BeanContext. containsBean(String name, BeanStore store)
Checks whether the specifiedBeanStore
contains a bean with the given name.<T> T
BeanContext. getBean(Class<T> beanCls, BeanStore store)
Returns the bean with the specified class from the givenBeanStore
.Object
BeanContext. getBean(String name, BeanStore store)
Returns the bean with the specified name from the givenBeanStore
.BeanProvider
Dependency. resolve(BeanStore store, DependencyProvider depProvider)
Resolves this dependency starting from the specifiedBeanStore
.void
BeanContext. setDefaultBeanStore(BeanStore store)
Sets the default bean store.void
MutableBeanStore. setParent(BeanStore p)
Sets the parent for this bean store. -
Uses of BeanStore in net.sf.jguiraffe.di.impl
Classes in net.sf.jguiraffe.di.impl that implement BeanStore Modifier and Type Class Description class
CombinedBeanStore
A specialized implementation of theBeanStore
interface that combines multiple physicalBeanStore
objects to a single logic view.class
DefaultBeanStore
A simple yet fully functional default implementation of theBeanStore
interface.class
SimpleBeanStoreImpl
A helper class that simplifies implementations of theBeanStore
interface.Methods in net.sf.jguiraffe.di.impl that return BeanStore Modifier and Type Method Description BeanStore
CombinedBeanStore. getChildStore(int idx)
Returns the childBeanStore
with the given index.BeanStore
BeanContextWrapper. getDefaultBeanStore()
Returns the default bean store.BeanStore
DefaultBeanContext. getDefaultBeanStore()
Returns the default bean store.BeanStore
CombinedBeanStore. getParent()
Returns the parent store of thisCombinedBeanStore
.BeanStore
DefaultBeanStore. getParent()
Returns the parent of this bean store or null if this is a top level store.BeanStore
SimpleBeanStoreImpl. getParent()
Returns the parent bean store.Methods in net.sf.jguiraffe.di.impl with parameters of type BeanStore Modifier and Type Method Description Set<Class<?>>
BeanContextWrapper. beanClasses(BeanStore store)
Returns a set of the classes of the beans available in the specified bean store.Set<Class<?>>
DefaultBeanContext. beanClasses(BeanStore store)
Obtains a list of the classes of the beans defined in the given store and its parents.String
BeanContextWrapper. beanNameFor(BeanProvider beanProvider, BeanStore store)
Returns the name of the givenBeanProvider
starting the search with the specified bean store.String
DefaultBeanContext. beanNameFor(BeanProvider beanProvider, BeanStore store)
Searches for the specifiedBeanProvider
in the accessible bean stores (starting with the specified bean store) and the returns the name, under which it is registered.Set<String>
BeanContextWrapper. beanNames(BeanStore store)
Returns a set with the names of the beans defined in the given bean store.Set<String>
DefaultBeanContext. beanNames(BeanStore store)
Returns a set with the names of the beans defined in the given bean store (or its parent).boolean
BeanContextWrapper. containsBean(Class<?> beanClass, BeanStore store)
Checks whether a bean with the given class can be found in the specified bean store.boolean
BeanContextWrapper. containsBean(String name, BeanStore store)
Checks whether a bean with the given name can be found in the specified bean store.boolean
DefaultBeanContext. containsBean(Class<?> beanClass, BeanStore store)
Tests whether a bean with the given class can be found in the specified bean store.boolean
DefaultBeanContext. containsBean(String name, BeanStore store)
Tests whether a bean with the given name can be found in the specified bean store.static ConversionHelper
DefaultBeanStore. fetchConversionHelper(BeanStore store, boolean createIfNecessary)
A convenience method for retrieving aConversionHelper
object from a hierarchy of bean stores.<T> T
BeanContextWrapper. getBean(Class<T> beanCls, BeanStore store)
Returns the bean with the given class starting the search with the specified bean store.Object
BeanContextWrapper. getBean(String name, BeanStore store)
Returns the bean with the given name starting the search with the specified bean store.<T> T
DefaultBeanContext. getBean(Class<T> beanCls, BeanStore store)
Returns the bean with the specified class from the given bean store.Object
DefaultBeanContext. getBean(String name, BeanStore store)
Returns the bean with the specified name from the given bean store.protected Object
DefaultBeanContext. getBean(Dependency dependency, BeanStore store)
Obtains the bean from theBeanProvider
specified by the givenDependency
.BeanProvider
ClassDependency. resolve(BeanStore store, DependencyProvider depProvider)
Resolves this dependency on the specified bean store.BeanProvider
NameDependency. resolve(BeanStore store, DependencyProvider depProvider)
Resolves the named dependency from the specified bean store.void
BeanContextWrapper. setDefaultBeanStore(BeanStore store)
Sets the default bean store.void
DefaultBeanContext. setDefaultBeanStore(BeanStore store)
Sets the default bean store.void
DefaultBeanStore. setParent(BeanStore p)
Sets the parent for this bean store.void
SimpleBeanStoreImpl. setParent(BeanStore parent)
Sets the parent bean store.protected void
DefaultBeanContext. waitForTx(BeanStore root)
Waits at the specified bean store until the current transaction finishes.Constructors in net.sf.jguiraffe.di.impl with parameters of type BeanStore Constructor Description BeanContextWrapper(BeanContext wrappedContext, BeanStore defaultStore)
Creates a new instance ofBeanContextWrapper
and sets the wrapped context and the default bean store.CombinedBeanStore(String storeName, BeanStore... beanStores)
Creates a new instance ofCombinedBeanStore
and initializes it with the given name and the child bean stores.CombinedBeanStore(BeanStore... beanStores)
Creates a new instance ofCombinedBeanStore
and initializes it with the given child bean stores.DefaultBeanContext(BeanStore defStore)
Creates a new instance ofDefaultBeanContext
and sets the default bean store.DefaultBeanStore(String name, BeanStore parent)
Creates a new instance ofDefaultBeanStore
and sets the name and the reference to the parent.SimpleBeanStoreImpl(String name, BeanStore parent)
Creates a new instance ofSimpleBeanStoreImpl
and sets the name and the reference to the parent. -
Uses of BeanStore in net.sf.jguiraffe.di.impl.providers
Methods in net.sf.jguiraffe.di.impl.providers with parameters of type BeanStore Modifier and Type Method Description BeanProvider
ConstantBeanProvider. resolve(BeanStore store, DependencyProvider depProvider)
Returns theBeanProvider
thisDependency
refers to. -
Uses of BeanStore in net.sf.jguiraffe.gui.app
Methods in net.sf.jguiraffe.gui.app that return BeanStore Modifier and Type Method Description BeanStore
ApplicationBuilderData. getRootStore()
Returns the root store populated by the builder. -
Uses of BeanStore in net.sf.jguiraffe.gui.builder
Methods in net.sf.jguiraffe.gui.builder that return BeanStore Modifier and Type Method Description BeanStore
BeanBuilderResult. getBeanStore(String name)
Returns theBeanStore
with the given name.BeanStore
BuilderData. getRootStore()
Returns the root store created during the builder operation. -
Uses of BeanStore in net.sf.jguiraffe.gui.builder.di
Methods in net.sf.jguiraffe.gui.builder.di that return BeanStore Modifier and Type Method Description BeanStore
DIBuilderData. getBeanStore(String name)
Returns theBeanStore
with the specified name.BeanStore
DIBuilderData. getRootBeanStore()
Returns the root bean store. -
Uses of BeanStore in net.sf.jguiraffe.gui.builder.impl
Classes in net.sf.jguiraffe.gui.builder.impl that implement BeanStore Modifier and Type Class Description class
JellyContextBeanStore
A specialized implementation of theBeanStore
interface that is backed by a Jelly context.Methods in net.sf.jguiraffe.gui.builder.impl that return BeanStore Modifier and Type Method Description BeanStore
JellyContextBeanStore. getParent()
Returns the parent bean store.Constructors in net.sf.jguiraffe.gui.builder.impl with parameters of type BeanStore Constructor Description JellyContextBeanStore(org.apache.commons.jelly.JellyContext ctx, BeanStore parentStore)
Creates a new instance ofJellyContextBeanStore
and initializes it with the underlying Jelly context and the parent bean store.JellyContextBeanStore(org.apache.commons.jelly.JellyContext ctx, BeanStore parentStore, String storeName)
Creates a new instance ofJellyContextBeanStore
and initializes it with the underlying Jelly context, the parent bean store and the name to be used.
-