public class NamespacePlugins
extends java.lang.Object
implements org.springframework.beans.factory.xml.NamespaceHandlerResolver, org.xml.sax.EntityResolver, org.springframework.beans.factory.DisposableBean
| Modifier and Type | Class and Description |
|---|---|
private static class |
NamespacePlugins.Plugin
Wrapper class which implements both
EntityResolver and NamespaceHandlerResolver interfaces. |
| Modifier and Type | Field and Description |
|---|---|
private LazyBundleRegistry.Activator<NamespacePlugins.Plugin> |
activation |
(package private) LazyBundleRegistry.Condition |
condition |
private static org.apache.commons.logging.Log |
log |
private LazyBundleRegistry<NamespacePlugins.Plugin> |
pluginRegistry |
| Constructor and Description |
|---|
NamespacePlugins() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addPlugin(org.osgi.framework.Bundle bundle,
boolean lazyBundle,
boolean applyCondition)
Adds a bundle as a handler to plugin registry.
|
void |
destroy() |
private org.springframework.beans.factory.xml.NamespaceHandler |
doResolve(java.lang.String namespaceUri) |
private org.xml.sax.InputSource |
doResolveEntity(java.lang.String publicId,
java.lang.String systemId) |
private void |
handleInputSourceException(java.lang.Exception exception) |
(package private) boolean |
isTypeCompatible(org.osgi.framework.Bundle bundle)
Checks the type compatibility check between the namespace parser wired to Spring DM and the discovered bundle
class space.
|
(package private) boolean |
removePlugin(org.osgi.framework.Bundle bundle)
Returns true if a handler mapping was removed for the given bundle.
|
org.springframework.beans.factory.xml.NamespaceHandler |
resolve(java.lang.String namespaceUri) |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId) |
private static final org.apache.commons.logging.Log log
final LazyBundleRegistry.Condition condition
private final LazyBundleRegistry.Activator<NamespacePlugins.Plugin> activation
private final LazyBundleRegistry<NamespacePlugins.Plugin> pluginRegistry
void addPlugin(org.osgi.framework.Bundle bundle,
boolean lazyBundle,
boolean applyCondition)
bundle - lazyBundle - boolean isTypeCompatible(org.osgi.framework.Bundle bundle)
bundle - handler bundleboolean removePlugin(org.osgi.framework.Bundle bundle)
bundle - bundle to look atpublic org.springframework.beans.factory.xml.NamespaceHandler resolve(java.lang.String namespaceUri)
resolve in interface org.springframework.beans.factory.xml.NamespaceHandlerResolverpublic org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException,
java.io.IOException
resolveEntity in interface org.xml.sax.EntityResolverorg.xml.sax.SAXExceptionjava.io.IOExceptionprivate org.springframework.beans.factory.xml.NamespaceHandler doResolve(java.lang.String namespaceUri)
private org.xml.sax.InputSource doResolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws java.lang.Exception
java.lang.Exceptionprivate void handleInputSourceException(java.lang.Exception exception)
throws org.xml.sax.SAXException,
java.io.IOException
org.xml.sax.SAXExceptionjava.io.IOExceptionpublic void destroy()
destroy in interface org.springframework.beans.factory.DisposableBean