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.tags |
In this package tag handler classes for defining beans in a Jelly script can be
found.
|
Modifier and Type | Method and Description |
---|---|
Set<Dependency> |
BeanProvider.getDependencies()
Returns a set with the descriptions of the beans this provider depends
on.
|
Modifier and Type | Method and Description |
---|---|
Object |
DependencyProvider.getDependentBean(Dependency dependency)
Returns the dependency bean for the specified dependency.
|
boolean |
DependencyProvider.isBeanAvailable(Dependency dependency)
Checks whether the bean specified by the given
Dependency
is currently available. |
Modifier and Type | Class and Description |
---|---|
class |
ClassDependency
An implementation of the
Dependency interface that allows to
define a dependency based on a bean class. |
class |
NameDependency
An implementation of the
Dependency interface that allows to
define a dependency based on the name of a bean. |
Modifier and Type | Method and Description |
---|---|
Dependency |
ChainedInvocation.getChainDependency(String name)
Returns a special
Dependency for a local variable that is
used during the execution of a ChainedInvocation . |
Dependency |
MethodInvocation.getTargetDependency()
Returns the target
Dependency of this MethodInvocation . |
Modifier and Type | Method and Description |
---|---|
List<Dependency> |
NullInvocation.getParameterDependencies()
Deprecated.
Returns the dependencies of this
Invokable . |
List<Dependency> |
MethodInvocation.getParameterDependencies()
Returns the
Dependency objects defining the current
parameter values. |
List<Dependency> |
Invokable.getParameterDependencies()
Returns a list with all dependencies required for this invocation.
|
List<Dependency> |
Invocation.getParameterDependencies()
Returns the
Dependency objects defining the current
parameter values. |
List<Dependency> |
HelperInvocations.getParameterDependencies()
Returns the dependencies for this invocation.
|
List<Dependency> |
ChainedInvocation.getParameterDependencies()
Returns a list of the dependencies required for this invocation.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
DefaultBeanContext.getBean(Dependency dependency,
BeanStore store)
Obtains the bean from the
BeanProvider specified by the given
Dependency . |
Object |
RestrictedDependencyProvider.getDependentBean(Dependency dependency)
Returns a dependent bean.
|
boolean |
RestrictedDependencyProvider.isBeanAvailable(Dependency dependency)
Checks whether a bean is available.
|
Constructor and Description |
---|
ConstructorInvocation(ClassDescription targetClass,
ClassDescription[] paramTypes,
Dependency... paramValues)
Creates a new instance of
ConstructorInvocation and
initializes it. |
Invocation(ClassDescription targetClass,
ClassDescription[] paramTypes,
Dependency... paramValues)
Creates a new instance of
Invocation and initializes it
with information about the call parameters. |
MethodInvocation(ClassDescription targetClass,
Dependency targetDep,
String methodName,
boolean isStatic,
ClassDescription[] paramTypes,
Dependency... paramValues)
Creates a new instance of
MethodInvocation and fully initializes
it. |
MethodInvocation(ClassDescription targetClass,
Dependency targetDep,
String methodName,
boolean isStatic,
ClassDescription[] paramTypes,
Dependency... paramValues)
Creates a new instance of
MethodInvocation and fully initializes
it. |
MethodInvocation(ClassDescription targetClass,
String methodName,
boolean isStatic,
ClassDescription[] paramTypes,
Dependency... paramValues)
Creates a new instance of
MethodInvocation and initializes most
of the properties. |
MethodInvocation(ClassDescription targetClass,
String methodName,
ClassDescription[] paramTypes,
Dependency... paramValues)
Creates a new instance of
MethodInvocation and initializes
it with information about the method to invoke and the target class. |
MethodInvocation(String methodName,
ClassDescription[] paramTypes,
Dependency... paramValues)
Creates a new instance of
MethodInvocation for non-static
method invocations. |
SetPropertyInvocation(String propName,
Dependency propValue)
Creates a new instance of
SetPropertyInvocation and
initializes it. |
Modifier and Type | Class and Description |
---|---|
class |
ConstantBeanProvider
A concrete implementation of the
BeanProvider interface that
will always return the same bean instance. |
Modifier and Type | Method and Description |
---|---|
Dependency |
MethodInvocationBeanProvider.getTargetDependency()
Returns the dependency to the target bean.
|
Modifier and Type | Method and Description |
---|---|
Set<Dependency> |
SingletonBeanProvider.getDependencies()
Returns the dependencies of this bean provider.
|
Set<Dependency> |
SimpleBeanProvider.getDependencies()
Returns the dependencies for this bean provider.
|
Set<Dependency> |
MethodInvocationBeanProvider.getDependencies()
Returns the dependencies of this bean provider.
|
Set<Dependency> |
MapBeanProvider.getDependencies()
Returns the dependencies of this bean provider.
|
Set<Dependency> |
LifeCycleBeanProvider.getDependencies()
Returns the dependencies of this bean provider.
|
Set<Dependency> |
ConstructorBeanProvider.getDependencies()
Returns the dependencies of this bean provider.
|
Set<Dependency> |
CollectionBeanProvider.getDependencies()
Returns a set with the dependencies of this bean provider.
|
Collection<Dependency> |
CollectionBeanProvider.getElementDependencies()
Returns a collection with the dependencies of the collection elements.
|
Collection<Dependency> |
MapBeanProvider.getKeyDependencies()
Returns the dependencies for the keys of the map.
|
Collection<Dependency> |
MapBeanProvider.getValueDependencies()
Returns the dependencies for the values of the map.
|
Constructor and Description |
---|
MethodInvocationBeanProvider(Dependency targetBean,
MethodInvocation methodInv)
Creates a new instance of
MethodInvocationBeanProvider and
initializes it with the dependency to the target object (on which the
method is to be invoked) and the description of the method invocation. |
MethodInvocationBeanProvider(Dependency targetBean,
MethodInvocation methodInv,
ClassDescription beanClsDsc)
Creates a new instance of
MethodInvocationBeanProvider and
initializes it with the dependency to the target object (on which the
method is to be invoked), the description of the method invocation, and
the class of the managed bean. |
Constructor and Description |
---|
CollectionBeanProvider(Collection<Dependency> deps)
Creates a new instance of
CollectionBeanProvider and
initializes it with a collection with the dependencies of the elements. |
ListBeanProvider(Collection<Dependency> deps)
Creates a new instance of
ListBeanProvider and initializes
it with the given dependencies for the list elements. |
MapBeanProvider(Collection<Dependency> keyDeps,
Collection<Dependency> valDeps,
boolean ordered)
Creates a new instance of
MapBeanProvider and initializes
it. |
MapBeanProvider(Collection<Dependency> keyDeps,
Collection<Dependency> valDeps,
boolean ordered)
Creates a new instance of
MapBeanProvider and initializes
it. |
PropertiesBeanProvider(Collection<Dependency> keyDeps,
Collection<Dependency> valDeps)
Creates a new instance of
PropertiesBeanProvider and
initializes it with the dependencies for keys and values. |
PropertiesBeanProvider(Collection<Dependency> keyDeps,
Collection<Dependency> valDeps)
Creates a new instance of
PropertiesBeanProvider and
initializes it with the dependencies for keys and values. |
SetBeanProvider(Collection<Dependency> deps,
boolean ordered)
Creates a new instance of
SetBeanProvider and initializes
it with the dependencies of its elements and the ordered flag. |
Modifier and Type | Method and Description |
---|---|
protected Dependency |
DependencyTag.createDependency()
Creates the
Dependency based on the values of the
attributes. |
protected Dependency |
EntryTag.createValueDependency()
Creates the dependency if a value is defined for this tag.
|
protected Dependency |
ElementTag.createValueDependency()
Creates the dependency when a constant value is specified for this tag.
|
protected Dependency |
DependencyTag.createValueDependency()
Creates the dependency when a direct value is set.
|
protected Dependency |
DependencyTag.getDependency()
Returns the
Dependency defined by this tag. |
Dependency |
EntryTag.getKeyDependency()
Returns the dependency for the key of the map entry.
|
protected Dependency[] |
InvocationTag.getParameterDependencies()
Returns an array with the dependencies of the this invocation's
parameters.
|
Dependency |
ParameterTag.getParameterDependency()
Returns the dependency for this parameter.
|
Dependency |
MethodInvocationTag.getTargetDependency()
Returns the target dependency of this method invocation.
|
Modifier and Type | Method and Description |
---|---|
Collection<Dependency> |
CollectionTag.getElementDependencies()
Returns a collection with the dependencies for the elements of the
collection created by this tag.
|
protected Collection<Dependency> |
MapTag.getKeyDependencies()
Returns the collection with the key dependencies.
|
protected Collection<Dependency> |
MapTag.getValueDependencies()
Returns the collection with the value dependencies.
|
Modifier and Type | Method and Description |
---|---|
void |
CollectionTag.addElement(Dependency dep)
Adds a new element to the collection managed by this tag.
|
void |
MapTag.addEntry(Dependency depKey,
Dependency depValue)
Adds a new entry to this map.
|
protected void |
DependencyTag.setDependency(Dependency dep)
Sets the internal dependency.
|
void |
EntryTag.setKeyDependency(Dependency keyDependency)
Sets the dependency for the key of the map entry.
|
void |
MethodInvocationTag.setTargetDependency(Dependency targetDependency)
Sets the target dependency of this method invocation.
|
Copyright © 2016 The JGUIraffe Team. All rights reserved.