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
main
di package. |
net.sf.jguiraffe.di.impl.providers |
In the
providers sub package different implementations of the
BeanProvider 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 the
Builder interfaces can be found. |
Modifier and Type | Method and Description |
---|---|
BeanProvider |
BeanCreationEvent.getBeanProvider()
Returns the
BeanProvider that created the new bean. |
BeanProvider |
BeanStore.getBeanProvider(String name)
Returns the
BeanProvider that is registered under the
given name or null if cannot be found. |
BeanProvider |
MutableBeanStore.removeBeanProvider(String name)
Removes the
BeanProvider with the specified name from this
bean store. |
BeanProvider |
Dependency.resolve(BeanStore store,
DependencyProvider depProvider)
Resolves this dependency starting from the specified
BeanStore . |
Modifier and Type | Method and Description |
---|---|
String |
MutableBeanStore.addAnonymousBeanProvider(int index,
BeanProvider provider)
Adds an anonymous
BeanProvider to this
BeanStore . |
void |
MutableBeanStore.addBeanProvider(String name,
BeanProvider provider)
Adds the specified
BeanProvider to this bean store under
the given name. |
void |
DependencyProvider.beanCreated(Object bean,
BeanProvider provider)
Notifies this
DependencyProvider about the creation of a bean. |
String |
BeanContext.beanNameFor(BeanProvider beanProvider)
Returns the name of the bean that is managed by the specified
BeanProvider , starting search with the default BeanStore . |
String |
BeanContext.beanNameFor(BeanProvider beanProvider,
BeanStore store)
Returns the name of the bean that is managed by the specified
BeanProvider , starting search in the specified BeanStore . |
Constructor and Description |
---|
BeanCreationEvent(BeanContext source,
BeanProvider provider,
DependencyProvider depProvider,
Object newBean)
Creates a new instance of
BeanCreationEvent and initializes it. |
Modifier and Type | Method and Description |
---|---|
BeanProvider |
SimpleBeanStoreImpl.getBeanProvider(String name)
Returns a
BeanProvider for the bean with the given name. |
BeanProvider |
DefaultBeanStore.getBeanProvider(String name)
Returns the
BeanProvider with the specified name. |
BeanProvider |
CombinedBeanStore.getBeanProvider(String name)
Returns the
BeanProvider with the given name. |
BeanProvider |
ChainedInvocation.getVariableBean(String name)
Returns a
BeanProvider 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 the
BeanProvider with the specified name from this
bean store. |
BeanProvider |
NameDependency.resolve(BeanStore store,
DependencyProvider depProvider)
Resolves the named dependency from the specified bean store.
|
BeanProvider |
ClassDependency.resolve(BeanStore store,
DependencyProvider depProvider)
Resolves this dependency on the specified bean store.
|
Modifier and Type | Method and Description |
---|---|
String |
DefaultBeanStore.addAnonymousBeanProvider(int index,
BeanProvider provider)
Adds an anonymous
BeanProvider . |
void |
DefaultBeanStore.addBeanProvider(String name,
BeanProvider provider)
Adds the specified
BeanProvider 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 |
DefaultBeanContext.beanNameFor(BeanProvider beanProvider)
Searches for the specified
BeanProvider in the accessible bean
stores (starting with the default bean store) and the returns the name,
under which it is registered. |
String |
BeanContextWrapper.beanNameFor(BeanProvider beanProvider)
Returns the name of the given
BeanProvider starting the search
with the default bean store. |
String |
DefaultBeanContext.beanNameFor(BeanProvider beanProvider,
BeanStore store)
Searches for the specified
BeanProvider in the accessible bean
stores (starting with the specified bean store) and the returns the name,
under which it is registered. |
String |
BeanContextWrapper.beanNameFor(BeanProvider beanProvider,
BeanStore store)
Returns the name of the given
BeanProvider starting the search
with the specified bean store. |
Modifier and Type | Class and Description |
---|---|
class |
CollectionBeanProvider
An abstract base class for
BeanProvider implementations that
create beans derived from collections. |
class |
ConstantBeanProvider
A concrete implementation of the
BeanProvider 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. |
class |
LifeCycleBeanProvider
An abstract base class for
BeanProvider implementations with
life-cycle support. |
class |
ListBeanProvider
A specific
CollectionBeanProvider implementation that creates
a list bean. |
class |
MapBeanProvider
A specialized
BeanProvider implementation for creating beans of
type java.util.Map . |
class |
MethodInvocationBeanProvider
A specialized
BeanProvider that creates beans by invoking a
method. |
class |
PropertiesBeanProvider
A specialized
BeanProvider implementation for creating a
java.util.Properties object. |
class |
SetBeanProvider
A specialized
CollectionBeanProvider implementation that
creates a java.util.Set bean. |
class |
SimpleBeanProvider
A base class for simple bean providers.
|
class |
SingletonBeanProvider
A specialized life-cycle supporting
BeanProvider implementation for
creating singleton beans. |
Modifier and Type | Method and Description |
---|---|
BeanProvider |
LifeCycleBeanProvider.getBeanCreator()
Returns the
BeanProvider that is responsible for creating
a new bean instance. |
BeanProvider |
ConstantBeanProvider.resolve(BeanStore store,
DependencyProvider depProvider)
Returns the
BeanProvider this Dependency refers
to. |
Constructor and Description |
---|
FactoryBeanProvider(BeanProvider createProvider)
Creates a new instance of
FactoryBeanProvider and
initializes it with the bean provider for creating a bean instance. |
FactoryBeanProvider(BeanProvider createProvider,
Invokable initinv)
Creates a new instance of
FactoryBeanProvider 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 of
LifeCycleBeanProvider and
initializes it with the BeanProvider for creating the bean
instance. |
LifeCycleBeanProvider(BeanProvider createProvider,
Invokable initinv)
Creates a new instance of
LifeCycleBeanProvider and
initializes it with the BeanProvider for creating the bean
instance and an Invokable for initializing it. |
SingletonBeanProvider(BeanProvider createProvider)
Creates a new instance of
SingletonBeanProvider and
initializes it with the bean provider for creating a bean instance. |
SingletonBeanProvider(BeanProvider createProvider,
Invokable initinv)
Creates a new instance of
SingletonBeanProvider 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 of
SingletonBeanProvider and initializes
it with the bean provider for creating a bean instance and Invokable objects for initializing and releasing the bean managed by
this provider. |
Modifier and Type | Method and Description |
---|---|
String |
DIBuilderData.addAnonymousBeanProvider(String storeName,
BeanProvider bean)
Adds an "anonymous"
BeanProvider to a
BeanStore . |
void |
DIBuilderData.addBeanProvider(String storeName,
String beanName,
BeanProvider bean)
Adds a
BeanProvider to a BeanStore . |
Modifier and Type | Method and Description |
---|---|
protected BeanProvider |
SetTag.createBeanProvider()
Creates the bean provider representing the collection managed by this
tag.
|
protected BeanProvider |
PropertiesTag.createBeanProvider()
Creates the
BeanProvider managed by this tag. |
protected BeanProvider |
MapTag.createBeanProvider()
Creates the
BeanProvider produced by this tag. |
protected BeanProvider |
ListTag.createBeanProvider()
Creates the bean provider representing the collection managed by this
tag.
|
protected BeanProvider |
BeanTag.createBeanProvider()
Creates the bean provider defined by this tag.
|
protected abstract BeanProvider |
AbstractBeanTag.createBeanProvider()
Creates the bean provider defined by this tag.
|
BeanProvider |
BeanTag.getBeanCreator()
Returns the
BeanProvider that will be used for creating
the managed bean. |
Modifier and Type | Method and Description |
---|---|
void |
BeanTag.setBeanCreator(BeanProvider beanCreator)
Sets the
BeanProvider that will be used for creating the
managed bean. |
protected void |
AbstractBeanTag.store(BeanProvider provider)
Stores the newly created
BeanProvider in the correct bean
store. |
Modifier and Type | Method and Description |
---|---|
BeanProvider |
JellyContextBeanStore.getBeanProvider(String name)
Returns a
BeanProvider for accessing the bean with the
given name. |
Copyright © 2016 The JGUIraffe Team. All rights reserved.