Package | Description |
---|---|
be.redlab.tool.context |
The context package, a lightweight CDI framework.
|
be.redlab.tool.context.ctx |
Package with other contexts.
|
be.redlab.tool.context.load |
Classes used to instantiate and load a class.
|
be.redlab.tool.context.load.ri |
The default implementation of interfaces in
be.redlab.tool.context.load |
be.redlab.tool.context.param |
Classes and interfaces used for creating an array of parameters that can be used on method invocation.
|
be.redlab.tool.context.spring.integration |
Provides integration with Spring to use both Spring Context loading and Redlab Tool Context at the same time.
|
be.redlab.tool.context.spring.support |
Provides classes to let Redlab Context understand Spring Configuration annotations.
|
be.redlab.tool.context.test.junit |
Tools for testing your code with JUnit and Context.
|
Modifier and Type | Class and Description |
---|---|
class |
BeanApplicationContext
Simple implementation of an ApplicationContext.
|
Modifier and Type | Method and Description |
---|---|
Object |
DefaultBeanFactory.createAndAddBean(ClassLoader loader,
ApplicationContext applicationContext,
Class<?> klass) |
Object |
BeanFactory.createAndAddBean(ClassLoader loader,
ApplicationContext applicationContext,
Class<?> klass)
Initializes an object of the given Class using the given
ClassLoader and adds the object to the given
ApplicationContext . |
Object |
DefaultBeanFactory.load(ClassLoader classLoader,
Class<?> javaClass,
ApplicationContext ctx) |
Object |
BeanFactory.load(ClassLoader classLoader,
Class<?> javaClass,
ApplicationContext ctx)
Load a bean, not adding it to the given
ApplicationContext . |
void |
ApplicationContextAware.setApplicationContext(ApplicationContext applicationContext)
The setter method to set the
ApplicationContext . |
Modifier and Type | Class and Description |
---|---|
class |
NoNullBeanApplicationContext
An extension to a
BeanApplicationContext that does not allow null to be returned. |
Modifier and Type | Method and Description |
---|---|
Object |
ConstructionStrategy.instantiate(Class<?> toLoad,
ApplicationContext applicationContext,
Constructor<?>... constructors) |
Object |
BeanLoadingStrategy.load(Class<?> klass,
ClassLoader loader,
ApplicationContext applicationContext) |
void |
DependencyLoaderStrategy.load(ClassLoader loader,
ApplicationContext applicationContext,
Class<?> klass,
Deque<String> stack,
BeanLoadingStrategy beanLoadingStrategy)
Loads needed dependencies of a Class if they are not already loaded.
|
Object |
BeanLoadingStrategy.loadBean(ClassLoader loader,
ApplicationContext applicationContext,
Class<?> k,
boolean checkBeanInitializer,
Deque<String> stack) |
void |
FieldSetterStrategy.setFields(Class<?> klassToUse,
Object o,
ApplicationContext context) |
Modifier and Type | Method and Description |
---|---|
protected Object |
DefaultFieldSetter.getValue(Field f,
Object o,
ApplicationContext context)
Searches for a value to satisfy the field.
|
Object |
SingleConstructorConstructionStrategy.instantiate(Class<?> toLoad,
ApplicationContext applicationContext,
Constructor<?>... constructors) |
Object |
MultipleConstructorsConstructionStrategy.instantiate(Class<?> toLoad,
ApplicationContext applicationContext,
Constructor<?>... constructors) |
protected Object |
DefaultBeanLoadingStrategy.instantiate(Class<?> toLoad,
ClassLoader loader,
ApplicationContext applicationContext)
Instantiates toLoad.
|
protected void |
DefaultDependencyLoaderStrategy.internalDependencyLoad(ClassLoader loader,
ApplicationContext applicationContext,
Class<?> loadClass,
Deque<String> stack,
BeanLoadingStrategy beanloader) |
Object |
DefaultBeanLoadingStrategy.load(Class<?> klass,
ClassLoader loader,
ApplicationContext applicationContext) |
void |
DefaultDependencyLoaderStrategy.load(ClassLoader loader,
ApplicationContext applicationContext,
Class<?> klass,
Deque<String> stack,
BeanLoadingStrategy beanloader)
Loads needed Objects if they are not already loaded.
|
Object |
DefaultBeanLoadingStrategy.loadBean(ClassLoader loader,
ApplicationContext applicationContext,
Class<?> k,
boolean checkBeanInitializer,
Deque<String> stack) |
protected void |
DefaultBeanLoadingStrategy.loadDependenciesHierarchical(ClassLoader loader,
ApplicationContext applicationContext,
Class<?> klass,
Deque<String> stack)
Hierarchically loads needed Objects if they are not already loaded.
|
protected Object |
DefaultBeanLoadingStrategy.postConstruct(Object obj,
ApplicationContext context) |
protected Object |
DefaultFieldSetter.setApplicationContext(Field f,
ApplicationContext context,
Object find)
If the given object find is null and ApplicationContet is assignable from the type of f.
|
void |
DefaultFieldSetter.setFields(Class<?> klass,
Object o,
ApplicationContext context) |
protected Object |
DefaultBeanLoadingStrategy.setFields(Object o,
ApplicationContext context)
Populate the fields of a given object.
|
Modifier and Type | Method and Description |
---|---|
Object |
NamedInjectionStrategy.create(Class<?> t,
Annotation[] annotations,
ApplicationContext applicationContext) |
Object |
InjectionStrategy.create(Class<?> paramType,
Annotation[] annotations,
ApplicationContext applicationContext)
Returns the found object from the given parameters.
|
Object[] |
ParameterArrayMaker.getParameterArray(Class<?>[] paramType,
Annotation[][] paramAnnotations,
ApplicationContext applicationContext) |
Object[] |
ParameterArrayFactory.getParameterArray(Class<?>[] paramType,
Annotation[][] paramAnnotations,
ApplicationContext applicationContext)
Given the parameters, an array of objects is composed from objects found in the given ApplicationContext.
|
Modifier and Type | Class and Description |
---|---|
class |
SpringContextAwareApplicationContext
This application context extends from the normal
BeanApplicationContext and can be made aware of a Spring
ApplicationContext . |
Modifier and Type | Method and Description |
---|---|
protected Object |
AutowiredFieldSetter.getValue(Field f,
Object o,
ApplicationContext context)
Searches for a value to satisfy the field.
|
Modifier and Type | Field and Description |
---|---|
protected ApplicationContext |
AbstractJUnitApplicationContextInitializingTest.appContext
The application context, initialized on
@Before |
Modifier and Type | Method and Description |
---|---|
ApplicationContext |
AbstractJUnitApplicationContextInitializingTest.getApplicationContext()
Returns the application context, you could also use the protected member
AbstractJUnitApplicationContextInitializingTest.appContext . |
Copyright © 2012 redlab.be. All Rights Reserved.