pt.digitalis.utils.ioc.modules
Interface IIoCBinding

All Known Implementing Classes:
IoCBinding

public interface IIoCBinding

Defines the expected behavior for an IoC binding. Uses the 'Fluent Interface' idiom to provide context relaying to subsequent calls.

Author:
Rodrigo Gonçalves rgoncalves@digitalis.pt

Method Summary
 IIoCBinding asFinal()
          Returns the current binding as final.
 IIoCBinding asSingleton()
          Returns the current binding as singleton.
 IIoCBinding override()
          Returns the current binding as overriding a previous bind to the same interface.
 IIoCBinding withId(String id)
          Returns the current binding with the given id.
 

Method Detail

asFinal

IIoCBinding asFinal()
Returns the current binding as final.

Returns:
the updated binding object

override

IIoCBinding override()
Returns the current binding as overriding a previous bind to the same interface.

Returns:
the updated binding object

asSingleton

IIoCBinding asSingleton()
Returns the current binding as singleton.

Returns:
the updated binding object

withId

IIoCBinding withId(String id)
Returns the current binding with the given id.

Parameters:
id - the binding's id
Returns:
the updated binding object


Copyright © 2012 Digitalis Informática Lda. All Rights Reserved.