|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.sap.netweaver.bc.rf.util.context.AbstractContextFactory
|
+--com.sap.netweaver.bc.rf.util.context.AbstractIndependentThreadContextFactory
Abstract context factory base class for thread-local-based context factory interface implementations being independent from other context factory implementations. All writing optional operations can be supported in independent context factories.
IContextFactory| Field Summary | |
protected java.lang.InheritableThreadLocal |
inheritableThreadLocal
|
| Constructor Summary | |
protected |
AbstractIndependentThreadContextFactory()
Construct object of class AbstractIndependentThreadContextFactory. |
| Method Summary | |
protected IContextStack |
getContextStack()
Internally get the stack of contexts associated with the actual thread. |
java.lang.Object |
getTypeUnsafeContext()
Get actual context from stack of contexts. |
java.lang.Object |
getTypeUnsafeContextOrNullIfUnavailable()
Get actual context from stack of contexts. |
boolean |
isAvailable()
Checks if there is at least one actual context stacked. |
java.lang.Object |
popTypeUnsafeContext()
Get and remove actual context from the stack of contexts. |
void |
pushTypeUnsafeContext(java.lang.Object context)
Add new context to the top of the stack of contexts. |
void |
removeTypeUnsafeContext()
Remove actual context including all other stacked contexts completely (optional operation). |
protected void |
setContextStack(IContextStack contextStack)
Internally get the stack of contexts associated with the actual thread. |
void |
setTypeUnsafeContext(java.lang.Object context)
Replace actual context with new one in stack of contexts. |
int |
size()
Get the number of context entries in the stack of contexts. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.InheritableThreadLocal inheritableThreadLocal
| Constructor Detail |
protected AbstractIndependentThreadContextFactory()
throws ContextFactoryRegistrationError
ContextFactoryRegistrationError - when the context factory is
already registered with the context factory registry| Method Detail |
protected IContextStack getContextStack()
protected void setContextStack(IContextStack contextStack)
contextStack - The new contextStack valuepublic boolean isAvailable()
public int size()
public java.lang.Object getTypeUnsafeContext()
throws ContextUnavailableException
ContextUnavailableException - when no (more) context is available
on the context stackpublic java.lang.Object getTypeUnsafeContextOrNullIfUnavailable()
public void setTypeUnsafeContext(java.lang.Object context)
context - new actual context replacing the old one on the stack
public void removeTypeUnsafeContext()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - when the context factory isn't
supporting this writing optional operation
public java.lang.Object popTypeUnsafeContext()
throws ContextUnavailableException
ContextUnavailableException - when no (more) context is available
on the context stackpublic void pushTypeUnsafeContext(java.lang.Object context)
context - new actual context
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||