public class NamespaceHandlerRegistryImpl extends Object implements NamespaceHandlerRegistry, org.osgi.util.tracker.ServiceTrackerCustomizer
Modifier and Type | Class and Description |
---|---|
static class |
NamespaceHandlerRegistryImpl.LRUMap<K,V> |
protected class |
NamespaceHandlerRegistryImpl.NamespaceHandlerSetImpl |
Constructor and Description |
---|
NamespaceHandlerRegistryImpl(org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
Object |
addingService(org.osgi.framework.ServiceReference reference) |
void |
destroy()
Destroy this registry
|
org.apache.aries.blueprint.parser.NamespaceHandlerSet |
getNamespaceHandlers(Set<URI> uris,
org.osgi.framework.Bundle bundle)
Retrieve the
NamespaceHandler for the specified URI. |
void |
modifiedService(org.osgi.framework.ServiceReference reference,
Object service) |
void |
registerHandler(org.apache.aries.blueprint.NamespaceHandler handler,
Map properties) |
void |
removedService(org.osgi.framework.ServiceReference reference,
Object service) |
void |
unregisterHandler(org.apache.aries.blueprint.NamespaceHandler handler,
Map properties) |
public static final String NAMESPACE
public NamespaceHandlerRegistryImpl(org.osgi.framework.BundleContext bundleContext)
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(org.apache.aries.blueprint.NamespaceHandler handler, Map properties)
public void unregisterHandler(org.apache.aries.blueprint.NamespaceHandler handler, Map properties)
public org.apache.aries.blueprint.parser.NamespaceHandlerSet getNamespaceHandlers(Set<URI> uris, org.osgi.framework.Bundle bundle)
NamespaceHandlerRegistry
NamespaceHandler
for the specified URI. Make suregetNamespaceHandlers
in interface NamespaceHandlerRegistry
uris
- the namespace identifying the namespace handlerbundle
- the blueprint bundle to be checked for class space consistencyNamespaceHandler
s compatible with the class space of the given bundlepublic void destroy()
NamespaceHandlerRegistry
destroy
in interface NamespaceHandlerRegistry
Copyright © 2019. All rights reserved.