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.app |
In this package the main application class can be found.
|
net.sf.jguiraffe.gui.builder |
The main package of the builder.
|
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.impl |
Here default implementations of the
Builder interfaces can be found. |
Modifier and Type | Interface and Description |
---|---|
interface |
MutableBeanStore
Definition of an interface for a
BeanStore that can be
manipulated. |
Modifier and Type | Method and Description |
---|---|
BeanStore |
BeanContext.getDefaultBeanStore()
Returns the default bean store.
|
BeanStore |
BeanStore.getParent()
Returns a reference to the parent
BeanStore . |
Modifier and Type | Method and Description |
---|---|
Set<Class<?>> |
BeanContext.beanClasses(BeanStore store)
Returns a set with the classes of all beans defined in the given
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 . |
Set<String> |
BeanContext.beanNames(BeanStore store)
Returns a set with the names of all beans defined in the given
BeanStore . |
boolean |
BeanContext.containsBean(Class<?> beanClass,
BeanStore store)
Checks whether the specified
BeanStore contains a bean
with the given class. |
boolean |
BeanContext.containsBean(String name,
BeanStore store)
Checks whether the specified
BeanStore contains a bean
with the given name. |
<T> T |
BeanContext.getBean(Class<T> beanCls,
BeanStore store)
Returns the bean with the specified class from the given
BeanStore . |
Object |
BeanContext.getBean(String name,
BeanStore store)
Returns the bean with the specified name from the given
BeanStore . |
BeanProvider |
Dependency.resolve(BeanStore store,
DependencyProvider depProvider)
Resolves this dependency starting from the specified
BeanStore . |
void |
BeanContext.setDefaultBeanStore(BeanStore store)
Sets the default bean store.
|
void |
MutableBeanStore.setParent(BeanStore p)
Sets the parent for this bean store.
|
Modifier and Type | Class and Description |
---|---|
class |
CombinedBeanStore
A specialized implementation of the
BeanStore interface that combines
multiple physical BeanStore objects to a single logic view. |
class |
DefaultBeanStore
A simple yet fully functional default implementation of the
BeanStore interface. |
class |
SimpleBeanStoreImpl
A helper class that simplifies implementations of the
BeanStore
interface. |
Modifier and Type | Method and Description |
---|---|
BeanStore |
CombinedBeanStore.getChildStore(int idx)
Returns the child
BeanStore with the given index. |
BeanStore |
DefaultBeanContext.getDefaultBeanStore()
Returns the default bean store.
|
BeanStore |
BeanContextWrapper.getDefaultBeanStore()
Returns the default bean store.
|
BeanStore |
SimpleBeanStoreImpl.getParent()
Returns the parent bean store.
|
BeanStore |
DefaultBeanStore.getParent()
Returns the parent of this bean store or null if this is a top
level store.
|
BeanStore |
CombinedBeanStore.getParent()
Returns the parent store of this
CombinedBeanStore . |
Modifier and Type | Method and Description |
---|---|
Set<Class<?>> |
DefaultBeanContext.beanClasses(BeanStore store)
Obtains a list of the classes of the beans defined in the given store and
its parents.
|
Set<Class<?>> |
BeanContextWrapper.beanClasses(BeanStore store)
Returns a set of the classes of the beans available in the specified 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. |
Set<String> |
DefaultBeanContext.beanNames(BeanStore store)
Returns a set with the names of the beans defined in the given bean store
(or its parent).
|
Set<String> |
BeanContextWrapper.beanNames(BeanStore store)
Returns a set with the names of the beans defined in the given bean
store.
|
boolean |
DefaultBeanContext.containsBean(Class<?> beanClass,
BeanStore store)
Tests whether a bean with the given class can be found in the specified
bean store.
|
boolean |
BeanContextWrapper.containsBean(Class<?> beanClass,
BeanStore store)
Checks whether a bean with the given class can be found in the specified
bean store.
|
boolean |
DefaultBeanContext.containsBean(String name,
BeanStore store)
Tests whether a bean with the given name can be found in the specified
bean store.
|
boolean |
BeanContextWrapper.containsBean(String name,
BeanStore store)
Checks whether a bean with the given name can be found in the specified
bean store.
|
static ConversionHelper |
DefaultBeanStore.fetchConversionHelper(BeanStore store,
boolean createIfNecessary)
A convenience method for retrieving a
ConversionHelper object
from a hierarchy of bean stores. |
<T> T |
DefaultBeanContext.getBean(Class<T> beanCls,
BeanStore store)
Returns the bean with the specified class from the given bean store.
|
<T> T |
BeanContextWrapper.getBean(Class<T> beanCls,
BeanStore store)
Returns the bean with the given class starting the search with the
specified bean store.
|
protected Object |
DefaultBeanContext.getBean(Dependency dependency,
BeanStore store)
Obtains the bean from the
BeanProvider specified by the given
Dependency . |
Object |
DefaultBeanContext.getBean(String name,
BeanStore store)
Returns the bean with the specified name from the given bean store.
|
Object |
BeanContextWrapper.getBean(String name,
BeanStore store)
Returns the bean with the given name starting the search with the
specified 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.
|
void |
DefaultBeanContext.setDefaultBeanStore(BeanStore store)
Sets the default bean store.
|
void |
BeanContextWrapper.setDefaultBeanStore(BeanStore store)
Sets the default bean store.
|
void |
SimpleBeanStoreImpl.setParent(BeanStore parent)
Sets the parent bean store.
|
void |
DefaultBeanStore.setParent(BeanStore p)
Sets the parent for this bean store.
|
protected void |
DefaultBeanContext.waitForTx(BeanStore root)
Waits at the specified bean store until the current transaction finishes.
|
Constructor and Description |
---|
BeanContextWrapper(BeanContext wrappedContext,
BeanStore defaultStore)
Creates a new instance of
BeanContextWrapper and sets the
wrapped context and the default bean store. |
CombinedBeanStore(BeanStore... beanStores)
Creates a new instance of
CombinedBeanStore and initializes it
with the given child bean stores. |
CombinedBeanStore(String storeName,
BeanStore... beanStores)
Creates a new instance of
CombinedBeanStore and initializes it
with the given name and the child bean stores. |
DefaultBeanContext(BeanStore defStore)
Creates a new instance of
DefaultBeanContext and sets the default
bean store. |
DefaultBeanStore(String name,
BeanStore parent)
Creates a new instance of
DefaultBeanStore and sets the name
and the reference to the parent. |
SimpleBeanStoreImpl(String name,
BeanStore parent)
Creates a new instance of
SimpleBeanStoreImpl and sets the
name and the reference to the parent. |
Modifier and Type | Method and Description |
---|---|
BeanProvider |
ConstantBeanProvider.resolve(BeanStore store,
DependencyProvider depProvider)
Returns the
BeanProvider this Dependency refers
to. |
Modifier and Type | Method and Description |
---|---|
BeanStore |
ApplicationBuilderData.getRootStore()
Returns the root store populated by the builder.
|
Modifier and Type | Method and Description |
---|---|
BeanStore |
BeanBuilderResult.getBeanStore(String name)
Returns the
BeanStore with the given name. |
BeanStore |
BuilderData.getRootStore()
Returns the root store created during the builder operation.
|
Modifier and Type | Method and Description |
---|---|
BeanStore |
DIBuilderData.getBeanStore(String name)
Returns the
BeanStore with the specified name. |
BeanStore |
DIBuilderData.getRootBeanStore()
Returns the root bean store.
|
Modifier and Type | Class and Description |
---|---|
class |
JellyContextBeanStore
A specialized implementation of the
BeanStore interface that
is backed by a Jelly context. |
Modifier and Type | Method and Description |
---|---|
BeanStore |
JellyContextBeanStore.getParent()
Returns the parent bean store.
|
Constructor and Description |
---|
JellyContextBeanStore(org.apache.commons.jelly.JellyContext ctx,
BeanStore parentStore)
Creates a new instance of
JellyContextBeanStore and
initializes it with the underlying Jelly context and the parent bean
store. |
JellyContextBeanStore(org.apache.commons.jelly.JellyContext ctx,
BeanStore parentStore,
String storeName)
Creates a new instance of
JellyContextBeanStore and
initializes it with the underlying Jelly context, the parent bean store
and the name to be used. |
Copyright © 2016 The JGUIraffe Team. All rights reserved.