Uses of Interface
net.sf.jguiraffe.di.Dependency
-
Packages that use Dependency 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.tags In this package tag handler classes for defining beans in a Jelly script can be found. -
-
Uses of Dependency in net.sf.jguiraffe.di
Methods in net.sf.jguiraffe.di that return types with arguments of type Dependency Modifier and Type Method Description Set<Dependency>
BeanProvider. getDependencies()
Returns a set with the descriptions of the beans this provider depends on.Methods in net.sf.jguiraffe.di with parameters of type Dependency Modifier and Type Method 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 givenDependency
is currently available. -
Uses of Dependency in net.sf.jguiraffe.di.impl
Classes in net.sf.jguiraffe.di.impl that implement Dependency Modifier and Type Class Description class
ClassDependency
An implementation of theDependency
interface that allows to define a dependency based on a bean class.class
NameDependency
An implementation of theDependency
interface that allows to define a dependency based on the name of a bean.Methods in net.sf.jguiraffe.di.impl that return Dependency Modifier and Type Method Description Dependency
ChainedInvocation. getChainDependency(String name)
Returns a specialDependency
for a local variable that is used during the execution of aChainedInvocation
.Dependency
MethodInvocation. getTargetDependency()
Returns the targetDependency
of thisMethodInvocation
.Methods in net.sf.jguiraffe.di.impl that return types with arguments of type Dependency Modifier and Type Method Description List<Dependency>
ChainedInvocation. getParameterDependencies()
Returns a list of the dependencies required for this invocation.List<Dependency>
HelperInvocations. getParameterDependencies()
Returns the dependencies for this invocation.List<Dependency>
Invocation. getParameterDependencies()
Returns theDependency
objects defining the current parameter values.List<Dependency>
Invokable. getParameterDependencies()
Returns a list with all dependencies required for this invocation.List<Dependency>
MethodInvocation. getParameterDependencies()
Returns theDependency
objects defining the current parameter values.List<Dependency>
NullInvocation. getParameterDependencies()
Deprecated.Returns the dependencies of thisInvokable
.Methods in net.sf.jguiraffe.di.impl with parameters of type Dependency Modifier and Type Method Description protected Object
DefaultBeanContext. getBean(Dependency dependency, BeanStore store)
Obtains the bean from theBeanProvider
specified by the givenDependency
.Object
RestrictedDependencyProvider. getDependentBean(Dependency dependency)
Returns a dependent bean.boolean
RestrictedDependencyProvider. isBeanAvailable(Dependency dependency)
Checks whether a bean is available.Constructors in net.sf.jguiraffe.di.impl with parameters of type Dependency Constructor Description ConstructorInvocation(ClassDescription targetClass, ClassDescription[] paramTypes, Dependency... paramValues)
Creates a new instance ofConstructorInvocation
and initializes it.Invocation(ClassDescription targetClass, ClassDescription[] paramTypes, Dependency... paramValues)
Creates a new instance ofInvocation
and initializes it with information about the call parameters.MethodInvocation(String methodName, ClassDescription[] paramTypes, Dependency... paramValues)
Creates a new instance ofMethodInvocation
for non-static method invocations.MethodInvocation(ClassDescription targetClass, String methodName, boolean isStatic, ClassDescription[] paramTypes, Dependency... paramValues)
Creates a new instance ofMethodInvocation
and initializes most of the properties.MethodInvocation(ClassDescription targetClass, String methodName, ClassDescription[] paramTypes, Dependency... paramValues)
Creates a new instance ofMethodInvocation
and initializes it with information about the method to invoke and the target class.MethodInvocation(ClassDescription targetClass, Dependency targetDep, String methodName, boolean isStatic, ClassDescription[] paramTypes, Dependency... paramValues)
Creates a new instance ofMethodInvocation
and fully initializes it.SetPropertyInvocation(String propName, Dependency propValue)
Creates a new instance ofSetPropertyInvocation
and initializes it. -
Uses of Dependency in net.sf.jguiraffe.di.impl.providers
Classes in net.sf.jguiraffe.di.impl.providers that implement Dependency Modifier and Type Class Description class
ConstantBeanProvider
A concrete implementation of theBeanProvider
interface that will always return the same bean instance.Methods in net.sf.jguiraffe.di.impl.providers that return Dependency Modifier and Type Method Description Dependency
MethodInvocationBeanProvider. getTargetDependency()
Returns the dependency to the target bean.Methods in net.sf.jguiraffe.di.impl.providers that return types with arguments of type Dependency Modifier and Type Method Description Set<Dependency>
CollectionBeanProvider. getDependencies()
Returns a set with the dependencies of this bean provider.Set<Dependency>
ConstructorBeanProvider. getDependencies()
Returns the dependencies of this bean provider.Set<Dependency>
LifeCycleBeanProvider. getDependencies()
Returns the dependencies of this bean provider.Set<Dependency>
MapBeanProvider. getDependencies()
Returns the dependencies of this bean provider.Set<Dependency>
MethodInvocationBeanProvider. getDependencies()
Returns the dependencies of this bean provider.Set<Dependency>
SimpleBeanProvider. getDependencies()
Returns the dependencies for this bean provider.Set<Dependency>
SingletonBeanProvider. getDependencies()
Returns 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.Constructors in net.sf.jguiraffe.di.impl.providers with parameters of type Dependency Constructor Description MethodInvocationBeanProvider(Dependency targetBean, MethodInvocation methodInv)
Creates a new instance ofMethodInvocationBeanProvider
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 ofMethodInvocationBeanProvider
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 parameters in net.sf.jguiraffe.di.impl.providers with type arguments of type Dependency Constructor Description CollectionBeanProvider(Collection<Dependency> deps)
Creates a new instance ofCollectionBeanProvider
and initializes it with a collection with the dependencies of the elements.ListBeanProvider(Collection<Dependency> deps)
Creates a new instance ofListBeanProvider
and initializes it with the given dependencies for the list elements.MapBeanProvider(Collection<Dependency> keyDeps, Collection<Dependency> valDeps, boolean ordered)
Creates a new instance ofMapBeanProvider
and initializes it.PropertiesBeanProvider(Collection<Dependency> keyDeps, Collection<Dependency> valDeps)
Creates a new instance ofPropertiesBeanProvider
and initializes it with the dependencies for keys and values.SetBeanProvider(Collection<Dependency> deps, boolean ordered)
Creates a new instance ofSetBeanProvider
and initializes it with the dependencies of its elements and the ordered flag. -
Uses of Dependency in net.sf.jguiraffe.gui.builder.di.tags
Methods in net.sf.jguiraffe.gui.builder.di.tags that return Dependency Modifier and Type Method Description protected Dependency
DependencyTag. createDependency()
Creates theDependency
based on the values of the attributes.protected Dependency
DependencyTag. createValueDependency()
Creates the dependency when a direct value is set.protected Dependency
ElementTag. createValueDependency()
Creates the dependency when a constant value is specified for this tag.protected Dependency
EntryTag. createValueDependency()
Creates the dependency if a value is defined for this tag.protected Dependency
DependencyTag. getDependency()
Returns theDependency
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.Methods in net.sf.jguiraffe.gui.builder.di.tags that return types with arguments of type Dependency Modifier and Type Method 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.Methods in net.sf.jguiraffe.gui.builder.di.tags with parameters of type Dependency Modifier and Type Method 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.
-