public class NamespaceMappings extends Object implements ApplicationContextInitializer
ApplicationContext.| Constructor and Description |
|---|
NamespaceMappings() |
| Modifier and Type | Method and Description |
|---|---|
static Properties |
getMappings(ApplicationContext appContext)
Get the prefix-to-namespace mannings from the
ApplicationContext. |
static NamespaceDeclarationStack |
getNamespaceDeclarationStack(ExecutionContext executionContext)
Get the
NamespaceDeclarationStack for the current message from the current ExecutionContext. |
void |
loadNamespaces()
Load the namespace prefix-to-uri mappings into the
ApplicationContext. |
static void |
setMappings(Properties namespaces,
ApplicationContext appContext)
Set the namespace prefix-to-uri mappings.
|
static void |
setNamespaceDeclarationStack(NamespaceDeclarationStack namespaceDeclarationStack,
ExecutionContext executionContext)
Set the
NamespaceDeclarationStack for the current message on the current ExecutionContext. |
@Initialize public void loadNamespaces()
ApplicationContext.public static void setMappings(Properties namespaces, ApplicationContext appContext)
namespaces - The namespace mappings.appContext - The application context.public static Properties getMappings(ApplicationContext appContext)
ApplicationContext.appContext - The ApplicationContext.public static void setNamespaceDeclarationStack(NamespaceDeclarationStack namespaceDeclarationStack, ExecutionContext executionContext)
NamespaceDeclarationStack for the current message on the current ExecutionContext.namespaceDeclarationStack - The NamespaceDeclarationStack instance.executionContext - The execution context.public static NamespaceDeclarationStack getNamespaceDeclarationStack(ExecutionContext executionContext)
NamespaceDeclarationStack for the current message from the current ExecutionContext.executionContext - The execution context.Copyright © 2020. All rights reserved.