|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.rf.util.context.ContextStack
Class holding 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.
| Field Summary | |
protected ArrayList |
contexts
|
protected int |
contextsIndex
|
| Constructor Summary | |
ContextStack()
|
|
| Method Summary | |
Object |
getTypeUnsafeContext()
Get actual context from stack of contexts. |
Object |
getTypeUnsafeContextOrNullIfUnavailable()
Get actual context from stack of contexts. |
boolean |
isAvailable()
Checks if there is at least one actual context stacked. |
Object |
popTypeUnsafeContext()
Get and remove actual context from the stack of contexts. |
void |
pushTypeUnsafeContext(Object context)
Add new context to the top of the stack of contexts. |
void |
setTypeUnsafeContext(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 ArrayList contexts
protected int contextsIndex
| Constructor Detail |
public ContextStack()
| Method Detail |
public boolean isAvailable()
isAvailable in interface IContextStackpublic int size()
size in interface IContextStack
public Object getTypeUnsafeContext()
throws ContextUnavailableException
getTypeUnsafeContext in interface IContextStackContextUnavailableException - when no (more) context is available
on the context stackpublic Object getTypeUnsafeContextOrNullIfUnavailable()
getTypeUnsafeContextOrNullIfUnavailable in interface IContextStackpublic void setTypeUnsafeContext(Object context)
setTypeUnsafeContext in interface IContextStackcontext - new actual context replacing the old one on the stack
public Object popTypeUnsafeContext()
throws ContextUnavailableException
popTypeUnsafeContext in interface IContextStackContextUnavailableException - when no (more) context is available
on the context stackpublic void pushTypeUnsafeContext(Object context)
pushTypeUnsafeContext in interface IContextStackcontext - new actual context
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||