public class SDOHelperContext
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SDOHelperContext.MyNotificationFilter
INTERNAL: This class will be handed in as a parameter when adding a JBoss notification listener.
|
Constructor and Description |
---|
SDOHelperContext()
Create a local HelperContext.
|
SDOHelperContext(java.lang.ClassLoader aClassLoader)
Create a local HelperContext.
|
SDOHelperContext(java.lang.String identifier)
Create a local HelperContext with the given identifier.
|
SDOHelperContext(java.lang.String identifier, java.lang.ClassLoader aClassLoader)
Create a local HelperContext with the given identifier.
|
Modifier and Type | Method and Description |
---|---|
static void |
addAlias(java.lang.String identifier, java.lang.String alias)
Add an alias to identifier pair to the alias Map for the current application.
|
ExternalizableDelegator.Resolvable |
createResolvable()
Create and return a new ExternalizableDelegator.Resolvable instance based on this helper context.
|
ExternalizableDelegator.Resolvable |
createResolvable(java.lang.Object target)
Create and return a new ExternalizableDelegator.Resolvable instance based on this helper context and a given target.
|
CopyHelper |
getCopyHelper()
Return the CopyHelper instance for this helper context.
|
DataFactory |
getDataFactory()
Return the DataFactory instance for this helper context.
|
DataHelper |
getDataHelper()
Return the DataHelper instance for this helper context.
|
EqualityHelper |
getEqualityHelper()
Return the EqualityHelper instance for this helper context.
|
static HelperContext |
getHelperContext()
INTERNAL: Return the helper context for a given key.
|
static HelperContext |
getHelperContext(java.lang.String identifier)
Return the local helper context associated with the given identifier, or create one if it does not already exist.
|
static HelperContext |
getHelperContext(java.lang.String identifier, java.lang.ClassLoader classLoader)
Return the local helper context with the given identifier, or create one if it does not already exist.
|
java.lang.String |
getIdentifier()
Return the unique label for this HelperContext.
|
java.lang.Object |
getProperty(java.lang.String name)
Return the value stored in the properties Map for a given name, or null if an entry for name does not exist.
|
TypeHelper |
getTypeHelper()
Return the TypeHelper instance for this helper context.
|
XMLHelper |
getXMLHelper()
Return the XMLHelper instance for this helper context.
|
XSDHelper |
getXSDHelper()
Return the XSDHelper instance for this helper context.
|
static boolean |
hasHelperContext(java.lang.String identifier)
Return true if a HelperContext corresponding to this identifier or alias already exists, else false.
|
static boolean |
isApplicationResolverSet()
Indicates if a call to setApplicationResolver has been made.
|
void |
makeDefaultContext()
ADVANCED Promote this helper context to be the default or global one.
|
static void |
putHelperContext(java.lang.ClassLoader key, HelperContext value)
INTERNAL: Put a ClassLoader/HelperContext key/value pair in the Thread HelperContext map.
|
static void |
putHelperContext(HelperContext ctx)
Replaces the provided helper context in the map of identifiers to helper contexts for this application. ctx.getIdentifier() will be used to obtain the identifier value.
|
static void |
removeHelperContext(java.lang.ClassLoader key)
INTERNAL: Remove a ClassLoader/HelperContext key/value pair from the Thread HelperContext map.
|
static void |
removeHelperContext(java.lang.String identifier, java.lang.ClassLoader key)
INTERNAL
|
void |
reset()
Reset the Type,XML and XSD helper instances.
|
static void |
setApplicationResolver(ApplicationResolver aResolver)
ADVANCED: Used to set an ApplicationResolver instance that will be used to retrieve info pertaining to a given application, such as the application name, in the case where our logic fails.
|
void |
setProperty(java.lang.String name, java.lang.Object value)
Add a name/value pair to the properties Map.
|
public SDOHelperContext()
public SDOHelperContext(java.lang.String identifier)
identifier
- The unique label for this HelperContext.public SDOHelperContext(java.lang.ClassLoader aClassLoader)
aClassLoader
- This class loader will be used to find static instance classes.public SDOHelperContext(java.lang.String identifier, java.lang.ClassLoader aClassLoader)
identifier
- The unique label for this HelperContext.aClassLoader
- This class loader will be used to find static instance classes.public static void setApplicationResolver(ApplicationResolver aResolver)
aResolver
- the ApplicationResolver instance that will be used to retrieve info pertaining to a given application. Note that null is considered a valid set operation.SDOException
- if more than one call is made to this method in an active server instance.public static boolean isApplicationResolverSet()
public void reset()
public CopyHelper getCopyHelper()
public DataFactory getDataFactory()
public DataHelper getDataHelper()
public EqualityHelper getEqualityHelper()
public TypeHelper getTypeHelper()
public XMLHelper getXMLHelper()
public XSDHelper getXSDHelper()
public ExternalizableDelegator.Resolvable createResolvable()
public ExternalizableDelegator.Resolvable createResolvable(java.lang.Object target)
target
-public static void putHelperContext(java.lang.ClassLoader key, HelperContext value)
key
- class loadervalue
- helper contextpublic static void removeHelperContext(java.lang.ClassLoader key)
key
- class loaderpublic static void removeHelperContext(java.lang.String identifier, java.lang.ClassLoader key)
identifier
- the specific identifier of the HelperContext to be removed. "" for a Global helperkey
- the ClassLoader associated with the HelperContext to be removedpublic static HelperContext getHelperContext()
public static HelperContext getHelperContext(java.lang.String identifier)
identifier
- the identifier or alias to use for lookup/creationpublic static HelperContext getHelperContext(java.lang.String identifier, java.lang.ClassLoader classLoader)
public static void putHelperContext(HelperContext ctx)
ctx
- the HelperContext to be added to the context Map for the current applicationpublic void makeDefaultContext()
public java.lang.String getIdentifier()
public static boolean hasHelperContext(java.lang.String identifier)
identifier
- the alias or identifier used to lookup a helper contextpublic static void addAlias(java.lang.String identifier, java.lang.String alias)
identifier
- assumed to be a key in the helper context Mapalias
- the alias to be associated with identifierpublic void setProperty(java.lang.String name, java.lang.Object value)
name
- the name of the propertyvalue
- the value of the propertypublic java.lang.Object getProperty(java.lang.String name)
name
- the name of the property to be returned