|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Scope
A scope which bound objects can reside in. Scopes a given Locator
.
Scope implementations should override toString()
in the returned
locator and include the unscoped locator's toString()
output. Doing
so aids debugging. They should also override their own toString()
method.
Method Summary | ||
---|---|---|
|
scope(Key<T> key,
Locator<T> unscoped)
Scopes a locator. |
Method Detail |
---|
<T> Locator<T> scope(Key<T> key, Locator<T> unscoped)
key
- binding keyunscoped
- locates an instance when one doesn't already exist in this
scope.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |