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.impl |
Here default implementations of the
Builder interfaces can be found. |
Modifier and Type | Method and Description |
---|---|
DependencyProvider |
BeanCreationEvent.getDependencyProvider()
Returns the
DependencyProvider involved in the bean creation
process. |
Modifier and Type | Method and Description |
---|---|
Object |
BeanProvider.getBean(DependencyProvider dependencyProvider)
Returns the bean managed by this provider.
|
Class<?> |
BeanProvider.getBeanClass(DependencyProvider dependencyProvider)
Returns the class of the bean managed by this provider.
|
void |
BeanInitializer.initialize(DependencyProvider dependencyProvider)
Performs the desired initialization.
|
BeanProvider |
Dependency.resolve(BeanStore store,
DependencyProvider depProvider)
Resolves this dependency starting from the specified
BeanStore . |
void |
BeanProvider.shutdown(DependencyProvider dependencyProvider)
Notifies this
BeanProvider that it (and the bean(s) created by
it) is no longer needed. |
Constructor and Description |
---|
BeanCreationEvent(BeanContext source,
BeanProvider provider,
DependencyProvider depProvider,
Object newBean)
Creates a new instance of
BeanCreationEvent and initializes it. |
Modifier and Type | Class and Description |
---|---|
class |
RestrictedDependencyProvider
An implementation of the
DependencyProvider interface, which does not
support external dependencies. |
Modifier and Type | Method and Description |
---|---|
protected static void |
Invocation.checkDependencyProvider(DependencyProvider depProvider)
Checks whether a valid
DependencyProvider has been specified. |
Class<?>[] |
Invocation.getParameterClasses(DependencyProvider depProvider)
Returns an array with the concrete parameter classes.
|
Object[] |
Invocation.getResolvedParameters(DependencyProvider depProvider)
Returns an array with the resolved parameters.
|
Object |
ConstructorInvocation.invoke(DependencyProvider depProvider)
Invokes the corresponding constructor on the specified target class and
returns the newly created instance.
|
Object |
SetPropertyInvocation.invoke(DependencyProvider depProvider,
Object target)
Performs the invocation and sets the property on the specified target
object.
|
Object |
NullInvocation.invoke(DependencyProvider depProvider,
Object target)
Deprecated.
Invokes this
Invokable . |
Object |
MethodInvocation.invoke(DependencyProvider depProvider,
Object target)
Invokes the corresponding method on the specified target instance.
|
Object |
Invokable.invoke(DependencyProvider depProvider,
Object target)
Performs the invocation.
|
Object |
ConstructorInvocation.invoke(DependencyProvider depProvider,
Object target)
Performs the invocation.
|
Object |
ChainedInvocation.invoke(DependencyProvider depProvider,
Object target)
Performs the invocation represented by this class.
|
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 |
---|---|
protected boolean |
LifeCycleBeanProvider.canInitialize(DependencyProvider dependencyProvider)
Checks whether initialization of the bean is now possible.
|
protected Object |
LifeCycleBeanProvider.createBean(DependencyProvider dependencyProvider)
Creates and initializes a new bean instance.
|
protected Object |
LifeCycleBeanProvider.doCreateBean(DependencyProvider dependencyProvider)
Creates a new bean instance.
|
protected Object |
LifeCycleBeanProvider.fetchBean(DependencyProvider dependencyProvider)
Returns the bean instance created by this provider.
|
protected Object |
LifeCycleBeanProvider.fetchInitializedBeanInstance(Object bean,
DependencyProvider dependencyProvider)
Returns the initialized bean instance.
|
Object |
SingletonBeanProvider.getBean(DependencyProvider dependencyProvider)
Returns the bean managed by this bean provider.
|
Object |
MethodInvocationBeanProvider.getBean(DependencyProvider dependencyProvider)
Returns the bean managed by this provider.
|
Object |
MapBeanProvider.getBean(DependencyProvider dependencyProvider)
Returns the bean managed by this provider.
|
Object |
FactoryBeanProvider.getBean(DependencyProvider dependencyProvider)
Returns the bean managed by this bean provider.
|
Object |
ConstructorBeanProvider.getBean(DependencyProvider dependencyProvider)
Returns the bean managed by this provider.
|
Object |
ConstantBeanProvider.getBean(DependencyProvider dependencyProvider)
Returns the bean managed by this provider.
|
Object |
CollectionBeanProvider.getBean(DependencyProvider dependencyProvider)
Returns the bean managed by this provider.
|
Class<?> |
MethodInvocationBeanProvider.getBeanClass(DependencyProvider dependencyProvider)
Returns the bean class of the bean managed by this provider.
|
Class<?> |
MapBeanProvider.getBeanClass(DependencyProvider dependencyProvider)
Returns the class of the managed bean.
|
Class<?> |
LifeCycleBeanProvider.getBeanClass(DependencyProvider dependencyProvider)
Returns the class of the bean managed by this provider.
|
Class<?> |
ConstructorBeanProvider.getBeanClass(DependencyProvider dependencyProvider)
Returns the class of the managed bean.
|
Class<?> |
ConstantBeanProvider.getBeanClass(DependencyProvider dependencyProvider)
Returns the class of the managed bean.
|
Class<?> |
CollectionBeanProvider.getBeanClass(DependencyProvider dependencyProvider)
Returns the class of the bean created by this provider.
|
protected void |
LifeCycleBeanProvider.initBean(Object bean,
DependencyProvider dependencyProvider)
Deprecated.
This method is not called any more during bean creation;
instead
LifeCycleBeanProvider.fetchInitializedBeanInstance(Object, DependencyProvider)
is invoked |
void |
LifeCycleBeanProvider.initialize(DependencyProvider dependencyProvider)
Performs initialization.
|
BeanProvider |
ConstantBeanProvider.resolve(BeanStore store,
DependencyProvider depProvider)
Returns the
BeanProvider this Dependency refers
to. |
void |
SingletonBeanProvider.shutdown(DependencyProvider depProvider)
Tells this provider that it is no more needed.
|
void |
SimpleBeanProvider.shutdown(DependencyProvider depProvider)
Shuts down this
BeanProvider . |
void |
LifeCycleBeanProvider.shutdown(DependencyProvider depProvider)
Notifies this
BeanProvider that it is no longer needed. |
Modifier and Type | Method and Description |
---|---|
protected DependencyProvider |
JellyBeanBuilder.createReleaseDependencyProvider(BeanBuilderResult result)
Creates a
DependencyProvider object that can be used during a
release() operation. |
Copyright © 2016 The JGUIraffe Team. All rights reserved.