|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.utils.ioc.modules.IoCBinding
public class IoCBinding
Defines a IoC binding. Uses the 'Fluent Interface' idiom for subsequent method invocations context relaying. The setter methods update the binding on the binder.
Constructor Summary | |
---|---|
IoCBinding(Class<?> interfaceType,
Class<?> implementationType,
boolean isFinal,
boolean override,
boolean isSingleton,
String id,
IoCBinder binder)
Constructs a new IoCBinding object. |
|
IoCBinding(Class<?> interfaceType,
Class<?> implementationType,
IoCBinder binder)
Constructs a new IoCBinding object. |
Method Summary | |
---|---|
IIoCBinding |
asFinal()
Returns the current binding as final. |
IIoCBinding |
asSingleton()
Returns the current binding as singleton. |
protected void |
deleteBinderReference()
Deletes the reference to the binder. |
String |
getId()
Inspector for the 'id' property. |
Class<?> |
getImplementationType()
Inspector for the implementation type property. |
Class<?> |
getInterfaceType()
Inspector for the interface type property. |
boolean |
isFinal()
Inspector for the 'final' property. |
boolean |
isMultiple()
|
boolean |
isOverride()
Inspector for the 'override' attribute. |
boolean |
isSingleton()
Inspector for the 'singleton' property. |
IIoCBinding |
override()
Returns the current binding as overriding a previous bind to the same interface. |
String |
toString()
|
IIoCBinding |
withId(String id)
Returns the current binding with the given id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IoCBinding(Class<?> interfaceType, Class<?> implementationType, boolean isFinal, boolean override, boolean isSingleton, String id, IoCBinder binder)
interfaceType
- the interface typeimplementationType
- implementation typeisFinal
- 'final' flagoverride
- 'override' flagisSingleton
- 'singleton' flagid
- the binding idbinder
- the IoC binder associated to this bindingpublic IoCBinding(Class<?> interfaceType, Class<?> implementationType, IoCBinder binder)
interfaceType
- the interface typeimplementationType
- the implementation typebinder
- the IoC binder associated to this bindingMethod Detail |
---|
public IIoCBinding asFinal()
IIoCBinding
asFinal
in interface IIoCBinding
IIoCBinding.asFinal()
public IIoCBinding asSingleton()
IIoCBinding
asSingleton
in interface IIoCBinding
IIoCBinding.asSingleton()
protected void deleteBinderReference()
public String getId()
public Class<?> getImplementationType()
public Class<?> getInterfaceType()
public boolean isFinal()
public boolean isMultiple()
public boolean isOverride()
public boolean isSingleton()
public IIoCBinding override()
IIoCBinding
override
in interface IIoCBinding
IIoCBinding.override()
public String toString()
toString
in class Object
Object.toString()
public IIoCBinding withId(String id)
IIoCBinding
withId
in interface IIoCBinding
id
- the binding's id
IIoCBinding.withId(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |