|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface describing a stack of context objects. This stack shall be used by context factories to store multiple stacked contexts within each thread. When no (more) context is available, a ContextUnavailableException is thrown.
| Method Summary | |
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 |
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. |
| Method Detail |
public 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 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 | |||||||||