| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class[] |
acceptedScopes |
protected static java.lang.ThreadLocal<java.util.Map<java.lang.String,java.lang.Object>> |
context |
| Constructor and Description |
|---|
ThreadLocalScope() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Scope referenceScope)
Defines allowed referenced scopes that can be injected into the
thread-local scoped bean.
|
protected void |
acceptScope(java.lang.Class<? extends Scope> scope)
Registers scope that will be
accepted. |
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.
|
protected static java.lang.ThreadLocal<java.util.Map<java.lang.String,java.lang.Object>> context
protected java.lang.Class[] acceptedScopes
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)
Copyright © 2003-2013 Jodd Team