|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.blueprint.namespace.NamespaceHandlerRegistryImpl
public class NamespaceHandlerRegistryImpl
Default implementation of the NamespaceHandlerRegistry. This registry will track NamespaceHandler objects in the OSGi registry and make them available, calling listeners when handlers are registered or unregistered.
| Nested Class Summary | |
|---|---|
static class |
NamespaceHandlerRegistryImpl.LRUMap<K,V>
|
| Nested classes/interfaces inherited from interface org.apache.geronimo.blueprint.container.NamespaceHandlerRegistry |
|---|
NamespaceHandlerRegistry.Listener |
| Field Summary | |
|---|---|
static URI |
BLUEPRINT_NAMESPACE
|
static String |
NAMESPACE
|
| Constructor Summary | |
|---|---|
NamespaceHandlerRegistryImpl(org.osgi.framework.BundleContext bundleContext)
|
|
| Method Summary | |
|---|---|
Object |
addingService(org.osgi.framework.ServiceReference reference)
|
void |
addListener(NamespaceHandlerRegistry.Listener listener)
Add a new Listener to be called when namespace handlers are registerd or unregistered |
void |
destroy()
Destroy this registry |
NamespaceHandler |
getNamespaceHandler(URI uri)
Retrieve the NamespaceHandler for the specified URI |
Schema |
getSchema(Set<URI> namespaces)
Obtain a schema to validate the XML for the given list of namespaces |
void |
modifiedService(org.osgi.framework.ServiceReference reference,
Object service)
|
void |
registerHandler(NamespaceHandler handler,
Map properties)
|
void |
removedService(org.osgi.framework.ServiceReference reference,
Object service)
|
void |
removeListener(NamespaceHandlerRegistry.Listener listener)
Remove a previously registered Listener |
protected void |
removeSchemasFor(List<URI> namespaces)
|
void |
unregisterHandler(NamespaceHandler handler,
Map properties)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final URI BLUEPRINT_NAMESPACE
public static final String NAMESPACE
| Constructor Detail |
|---|
public NamespaceHandlerRegistryImpl(org.osgi.framework.BundleContext bundleContext)
| Method Detail |
|---|
public Object addingService(org.osgi.framework.ServiceReference reference)
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer
public void modifiedService(org.osgi.framework.ServiceReference reference,
Object service)
modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer
public void removedService(org.osgi.framework.ServiceReference reference,
Object service)
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer
public void registerHandler(NamespaceHandler handler,
Map properties)
public void unregisterHandler(NamespaceHandler handler,
Map properties)
public NamespaceHandler getNamespaceHandler(URI uri)
NamespaceHandlerRegistryNamespaceHandler for the specified URI
getNamespaceHandler in interface NamespaceHandlerRegistryuri - the namespace identifying the namespace handler
NamespaceHandler or null if none has been registered for the given namespacepublic void destroy()
NamespaceHandlerRegistry
destroy in interface NamespaceHandlerRegistrypublic void addListener(NamespaceHandlerRegistry.Listener listener)
NamespaceHandlerRegistry
addListener in interface NamespaceHandlerRegistrylistener - the listener to registerpublic void removeListener(NamespaceHandlerRegistry.Listener listener)
NamespaceHandlerRegistry
removeListener in interface NamespaceHandlerRegistrylistener - the listener to unregister
public Schema getSchema(Set<URI> namespaces)
throws IOException,
SAXException
NamespaceHandlerRegistry
getSchema in interface NamespaceHandlerRegistryIOException
SAXExceptionprotected void removeSchemasFor(List<URI> namespaces)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||