| Package | Description |
|---|---|
| to.etc.iocular | |
| to.etc.iocular.def |
| Modifier and Type | Method and Description |
|---|---|
ComponentBuilder |
Builder.register() |
| Modifier and Type | Method and Description |
|---|---|
ComponentBuilder |
ComponentBuilder.destroy(Class<?> wh,
String methodName)
Define a "close" or "discard" method on another class for a given object.
|
ComponentBuilder |
ComponentBuilder.destroy(String methodName)
Define a "close" or "discard" method on the instance that was created.
|
ComponentBuilder |
ComponentBuilder.factory(Class<?> clz,
String method)
A basic object builder defining an object to be returned from a
static factory method on a class.
|
ComponentBuilder |
ComponentBuilder.factory(String id,
String method)
A basic object builder defining an object to be returned from a container object identified
by a name, by calling a method on that object.
|
ComponentBuilder |
ComponentBuilder.factoryStart(Class<?> clz,
String methodName,
Class<?>... arguments)
Only used for static factories, this allows you to call a static method on whatever
static class to get it to initialize.
|
ComponentBuilder |
ComponentBuilder.factoryStart(String methodName,
Class<?>... arguments)
Only used for static factories, this allows you to call a static method on the
container class itself to get it to initialize.
|
ComponentBuilder |
ComponentPropertyDef.getBuilder() |
ComponentBuilder |
ComponentBuilder.implement(Class<?> clz)
Define an explicit type for this class.
|
ComponentBuilder |
ComponentBuilder.name(String name)
When called this adds a name for the component.
|
ComponentBuilder |
ComponentBuilder.parameter(Class<?> ptype)
Create the specified class by getting a parameter that is set, in runtime, when the
container is constructed.
|
ComponentBuilder |
BasicContainerBuilder.register() |
ComponentBuilder |
BasicContainerBuilder.registerInstance(Object inst)
Register an instance of an object.
|
ComponentBuilder |
BasicContainerBuilder.registerInstance(String name,
Object inst) |
ComponentBuilder |
ComponentBuilder.scope(BindingScope scope)
Defines the scope for this object.
|
ComponentBuilder |
ComponentBuilder.setAllProperties()
This defines that all properties on the instance must be set; it aborts if it cannot
find a proper instance for a given property.
|
ComponentBuilder |
ComponentBuilder.setKnownProperties()
This sets all properties on this components for which a value can be determined.
|
ComponentBuilder |
ComponentBuilder.setProperties(String... names)
Define a set of properties on this component that must be set using default
wiring for the properties.
|
ComponentBuilder |
ComponentBuilder.setProperty(String name,
Class<?> componentClass)
Inject the specified property with the component registered with the specified class.
|
ComponentBuilder |
ComponentBuilder.setProperty(String name,
String componentId)
Inject the specified property with the component with the given name.
|
ComponentBuilder |
ComponentBuilder.start(String methodName,
Class<?>... arguments)
Add a start method to an object being retrieved.
|
ComponentBuilder |
ComponentBuilder.type(Class<?> clz)
Create the specified class using it's constructor, followed by setter injection where
needed.
|
| Modifier and Type | Method and Description |
|---|---|
MethodInvoker |
MethodCallBuilder.createInvoker(ISelfDef self,
Stack<ComponentBuilder> stack)
Create an unique invoker for this method.
|
ComponentRef |
BasicContainerBuilder.findReferenceFor(Stack<ComponentBuilder> stack,
ComponentPropertyDef pd)
Return a reference for a property setter.
|
| Constructor and Description |
|---|
BuildPlanFailedException(ComponentBuilder b,
String why,
List<FailedAlternative> list) |
IocCircularException(ComponentBuilder cb,
Stack<ComponentBuilder> stack,
String what) |
IocConfigurationException(ComponentBuilder b,
String message) |
MethodCallBuilder(ComponentBuilder component,
Class<?> baseClass,
String methodName) |
MethodCallBuilder(ComponentBuilder component,
Class<?> baseClass,
String methodName,
Class<?>[] actuals,
boolean staticOnly) |
| Constructor and Description |
|---|
IocCircularException(ComponentBuilder cb,
Stack<ComponentBuilder> stack,
String what) |
Copyright © 2017 etc.to. All rights reserved.