public class ContextFactoryRegistry extends Object
Created 20. Januar 2003
IContextFactory| Constructor and Description |
|---|
ContextFactoryRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getTypeUnsafeContext(Class contextFactoryClass)
Get actual context from stack of contexts.
|
Object |
getTypeUnsafeContextOrNullIfUnavailable(Class contextFactoryClass)
Get actual context from stack of contexts.
|
static Object |
popTypeUnsafeContext(Class contextFactoryClass)
Get and remove actual context from the stack of contexts.
|
static void |
pushTypeUnsafeContext(Class contextFactoryClass,
Object context)
Add new context to the top of the stack of contexts.
|
static void |
registerContextFactory(IContextFactory contextFactory)
Register context factory instance.
|
static void |
setTypeUnsafeContext(Class contextFactoryClass,
Object context)
Replace actual context with new one in stack of contexts.
|
static void |
unregisterContextFactory(Class contextFactoryClass)
Unregister context factory by context factory class (name).
|
static void |
unregisterContextFactory(IContextFactory contextFactory)
Unregister context factory by context factory instance.
|
public static void registerContextFactory(IContextFactory contextFactory) throws ContextFactoryRegistrationError
contextFactory - context factory instance to be registeredContextFactoryRegistrationError - when the context factory is
already registered with the context factory registrypublic static void unregisterContextFactory(Class contextFactoryClass) throws ContextFactoryRegistrationError
contextFactoryClass - context factory class (name) to be unregisteredContextFactoryRegistrationError - when the context factory isn't
registered with the context factory registrypublic static void unregisterContextFactory(IContextFactory contextFactory) throws ContextFactoryRegistrationError
contextFactory - context factory to be unregisteredContextFactoryRegistrationError - when the context factory isn't
registered with the context factory registrypublic static Object getTypeUnsafeContext(Class contextFactoryClass) throws ContextUnavailableException, ContextFactoryRegistrationError
contextFactoryClass - context factory class used to look up context
factoryContextUnavailableException - when no (more) context is available
on the context stackContextFactoryRegistrationError - when the context factory isn't
registered with the context factory registrypublic Object getTypeUnsafeContextOrNullIfUnavailable(Class contextFactoryClass)
contextFactoryClass - TBD: Description of the incoming method
parameterpublic static void setTypeUnsafeContext(Class contextFactoryClass, Object context) throws ContextFactoryRegistrationError
context - new actual context replacing the old one on the stackcontextFactoryClass - context factory class used to look up context
factoryContextFactoryRegistrationError - when the context factory isn't
registered with the context factory registrypublic static Object popTypeUnsafeContext(Class contextFactoryClass) throws ContextUnavailableException, ContextFactoryRegistrationError
contextFactoryClass - context factory class used to look up context
factoryContextUnavailableException - when no (more) context is available
on the context stackContextFactoryRegistrationError - when the context factory isn't
registered with the context factory registrypublic static void pushTypeUnsafeContext(Class contextFactoryClass, Object context) throws ContextFactoryRegistrationError
context - new actual contextcontextFactoryClass - context factory class used to look up context
factoryContextFactoryRegistrationError - when the context factory isn't
registered with the context factory registry| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice