| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Scope referenceScope)
Returns
true if a bean of referenced scope can be
injected into target bean of this scope. |
java.lang.Object |
lookup(java.lang.String name)
Lookups for bean name.
|
void |
register(java.lang.String name,
java.lang.Object bean)
Registers the bean within the current scope.
|
void |
remove(java.lang.String name)
Removes the bean from the scope entirely.
|
public java.lang.Object lookup(java.lang.String name)
Scoperegistration,
therefore it should returns null if object is not
yet registered.public void register(java.lang.String name,
java.lang.Object bean)
Scopepublic void remove(java.lang.String name)
Scopepublic boolean accept(Scope referenceScope)
Scopetrue if a bean of referenced scope can be
injected into target bean of this scope. Otherwise, returns
false, which may be a sign for scoped proxy to be
injected.
In general, injection of 'shorter' reference scopes
into the 'longer' target scopes should not be accepted.
In other words, if reference scope is 'longer' or equal (same),
this method should return true.
Copyright © 2003-2013 Jodd Team