Uses of Interface
net.sf.jguiraffe.di.BeanProvider
-
Packages that use BeanProvider 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.builder.di The builder.di package contains fundamental classes for defining beans and services in a Jelly script.net.sf.jguiraffe.gui.builder.di.tags In this package tag handler classes for defining beans in a Jelly script can be found.net.sf.jguiraffe.gui.builder.impl Here default implementations of theBuilder
interfaces can be found. -
-
Uses of BeanProvider in net.sf.jguiraffe.di
Methods in net.sf.jguiraffe.di that return BeanProvider Modifier and Type Method Description BeanProvider
BeanCreationEvent. getBeanProvider()
Returns theBeanProvider
that created the new bean.BeanProvider
BeanStore. getBeanProvider(String name)
Returns theBeanProvider
that is registered under the given name or null if cannot be found.BeanProvider
MutableBeanStore. removeBeanProvider(String name)
Removes theBeanProvider
with the specified name from this bean store.BeanProvider
Dependency. resolve(BeanStore store, DependencyProvider depProvider)
Resolves this dependency starting from the specifiedBeanStore
.Methods in net.sf.jguiraffe.di with parameters of type BeanProvider Modifier and Type Method Description String
MutableBeanStore. addAnonymousBeanProvider(int index, BeanProvider provider)
Adds an anonymousBeanProvider
to thisBeanStore
.void
MutableBeanStore. addBeanProvider(String name, BeanProvider provider)
Adds the specifiedBeanProvider
to this bean store under the given name.void
DependencyProvider. beanCreated(Object bean, BeanProvider provider)
Notifies thisDependencyProvider
about the creation of a bean.String
BeanContext. beanNameFor(BeanProvider beanProvider)
Returns the name of the bean that is managed by the specifiedBeanProvider
, starting search with the defaultBeanStore
.String
BeanContext. beanNameFor(BeanProvider beanProvider, BeanStore store)
Returns the name of the bean that is managed by the specifiedBeanProvider
, starting search in the specifiedBeanStore
.Constructors in net.sf.jguiraffe.di with parameters of type BeanProvider Constructor Description BeanCreationEvent(BeanContext source, BeanProvider provider, DependencyProvider depProvider, Object newBean)
Creates a new instance ofBeanCreationEvent
and initializes it. -
Uses of BeanProvider in net.sf.jguiraffe.di.impl
Methods in net.sf.jguiraffe.di.impl that return BeanProvider Modifier and Type Method Description BeanProvider
CombinedBeanStore. getBeanProvider(String name)
Returns theBeanProvider
with the given name.BeanProvider
DefaultBeanStore. getBeanProvider(String name)
Returns theBeanProvider
with the specified name.BeanProvider
SimpleBeanStoreImpl. getBeanProvider(String name)
Returns aBeanProvider
for the bean with the given name.BeanProvider
ChainedInvocation. getVariableBean(String name)
Returns aBeanProvider
for the local variable with the given name.protected BeanProvider
SimpleBeanStoreImpl. providerFor(Object bean)
Returns a bean provider for the specified bean.BeanProvider
DefaultBeanStore. removeBeanProvider(String name)
Removes theBeanProvider
with the specified name from this bean store.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.Methods in net.sf.jguiraffe.di.impl with parameters of type BeanProvider Modifier and Type Method Description String
DefaultBeanStore. addAnonymousBeanProvider(int index, BeanProvider provider)
Adds an anonymousBeanProvider
.void
DefaultBeanStore. addBeanProvider(String name, BeanProvider provider)
Adds the specifiedBeanProvider
to this bean store under the given name.void
RestrictedDependencyProvider. beanCreated(Object bean, BeanProvider provider)
Notifies this dependency provider about a newly created bean.String
BeanContextWrapper. beanNameFor(BeanProvider beanProvider)
Returns the name of the givenBeanProvider
starting the search with the default bean store.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)
Searches for the specifiedBeanProvider
in the accessible bean stores (starting with the default bean store) and the returns the name, under which it is registered.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. -
Uses of BeanProvider in net.sf.jguiraffe.di.impl.providers
Classes in net.sf.jguiraffe.di.impl.providers that implement BeanProvider Modifier and Type Class Description class
CollectionBeanProvider
An abstract base class forBeanProvider
implementations that create beans derived from collections.class
ConstantBeanProvider
A concrete implementation of theBeanProvider
interface that will always return the same bean instance.class
ConstructorBeanProvider
A simple bean provider that creates new bean instances by invoking a constructor.class
FactoryBeanProvider
A specialized life-cycle supporting
implementation for creating new bean instances on each invocation.BeanProvider
class
LifeCycleBeanProvider
An abstract base class forBeanProvider
implementations with life-cycle support.class
ListBeanProvider
A specificCollectionBeanProvider
implementation that creates a list bean.class
MapBeanProvider
A specializedBeanProvider
implementation for creating beans of typejava.util.Map
.class
MethodInvocationBeanProvider
A specializedBeanProvider
that creates beans by invoking a method.class
PropertiesBeanProvider
A specializedBeanProvider
implementation for creating ajava.util.Properties
object.class
SetBeanProvider
A specializedCollectionBeanProvider
implementation that creates ajava.util.Set
bean.class
SimpleBeanProvider
A base class for simple bean providers.class
SingletonBeanProvider
A specialized life-cycle supportingBeanProvider
implementation for creating singleton beans.Methods in net.sf.jguiraffe.di.impl.providers that return BeanProvider Modifier and Type Method Description BeanProvider
LifeCycleBeanProvider. getBeanCreator()
Returns theBeanProvider
that is responsible for creating a new bean instance.BeanProvider
ConstantBeanProvider. resolve(BeanStore store, DependencyProvider depProvider)
Returns theBeanProvider
thisDependency
refers to.Constructors in net.sf.jguiraffe.di.impl.providers with parameters of type BeanProvider Constructor Description FactoryBeanProvider(BeanProvider createProvider)
Creates a new instance ofFactoryBeanProvider
and initializes it with the bean provider for creating a bean instance.FactoryBeanProvider(BeanProvider createProvider, Invokable initinv)
Creates a new instance ofFactoryBeanProvider
and initializes it with the bean provider for creating a bean instance and the invocation object for performing initialization.LifeCycleBeanProvider(BeanProvider createProvider)
Creates a new instance ofLifeCycleBeanProvider
and initializes it with theBeanProvider
for creating the bean instance.LifeCycleBeanProvider(BeanProvider createProvider, Invokable initinv)
Creates a new instance ofLifeCycleBeanProvider
and initializes it with theBeanProvider
for creating the bean instance and anInvokable
for initializing it.SingletonBeanProvider(BeanProvider createProvider)
Creates a new instance ofSingletonBeanProvider
and initializes it with the bean provider for creating a bean instance.SingletonBeanProvider(BeanProvider createProvider, Invokable initinv)
Creates a new instance ofSingletonBeanProvider
and initializes it with the bean provider for creating a bean instance and the invocation object for performing initialization.SingletonBeanProvider(BeanProvider createProvider, Invokable initInv, Invokable shutdownInv)
Creates a new instance ofSingletonBeanProvider
and initializes it with the bean provider for creating a bean instance andInvokable
objects for initializing and releasing the bean managed by this provider. -
Uses of BeanProvider in net.sf.jguiraffe.gui.builder.di
Methods in net.sf.jguiraffe.gui.builder.di with parameters of type BeanProvider Modifier and Type Method Description String
DIBuilderData. addAnonymousBeanProvider(String storeName, BeanProvider bean)
Adds an "anonymous"BeanProvider
to aBeanStore
.void
DIBuilderData. addBeanProvider(String storeName, String beanName, BeanProvider bean)
Adds aBeanProvider
to aBeanStore
. -
Uses of BeanProvider in net.sf.jguiraffe.gui.builder.di.tags
Methods in net.sf.jguiraffe.gui.builder.di.tags that return BeanProvider Modifier and Type Method Description protected abstract BeanProvider
AbstractBeanTag. createBeanProvider()
Creates the bean provider defined by this tag.protected BeanProvider
BeanTag. createBeanProvider()
Creates the bean provider defined by this tag.protected BeanProvider
ContextBeanTag. createBeanProvider()
Creates the bean provider defined by this tag.protected BeanProvider
ListTag. createBeanProvider()
Creates the bean provider representing the collection managed by this tag.protected BeanProvider
MapTag. createBeanProvider()
Creates theBeanProvider
produced by this tag.protected BeanProvider
PropertiesTag. createBeanProvider()
Creates theBeanProvider
managed by this tag.protected BeanProvider
SetTag. createBeanProvider()
Creates the bean provider representing the collection managed by this tag.BeanProvider
BeanTag. getBeanCreator()
Returns theBeanProvider
that will be used for creating the managed bean.Methods in net.sf.jguiraffe.gui.builder.di.tags with parameters of type BeanProvider Modifier and Type Method Description void
BeanTag. setBeanCreator(BeanProvider beanCreator)
Sets theBeanProvider
that will be used for creating the managed bean.protected void
AbstractBeanTag. store(BeanProvider provider)
Stores the newly createdBeanProvider
in the correct bean store. -
Uses of BeanProvider in net.sf.jguiraffe.gui.builder.impl
Methods in net.sf.jguiraffe.gui.builder.impl that return BeanProvider Modifier and Type Method Description BeanProvider
JellyContextBeanStore. getBeanProvider(String name)
Returns aBeanProvider
for accessing the bean with the given name.
-