org.apache.geronimo.blueprint.container
Interface NamespaceHandlerRegistry

All Known Implementing Classes:
NamespaceHandlerRegistryImpl

public interface NamespaceHandlerRegistry

Registry of NamespaceHandler.

Version:
$Rev: 760378 $, $Date: 2009-03-31 11:31:38 +0200 (Tue, 31 Mar 2009) $
Author:
Apache Geronimo Project

Nested Class Summary
static interface NamespaceHandlerRegistry.Listener
          Interface used to listen to registered or unregistered namespace handlers.
 
Method Summary
 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 removeListener(NamespaceHandlerRegistry.Listener listener)
          Remove a previously registered Listener
 

Method Detail

getNamespaceHandler

NamespaceHandler getNamespaceHandler(URI uri)
Retrieve the NamespaceHandler for the specified URI

Parameters:
uri - the namespace identifying the namespace handler
Returns:
the registered NamespaceHandler or null if none has been registered for the given namespace

addListener

void addListener(NamespaceHandlerRegistry.Listener listener)
Add a new Listener to be called when namespace handlers are registerd or unregistered

Parameters:
listener - the listener to register

removeListener

void removeListener(NamespaceHandlerRegistry.Listener listener)
Remove a previously registered Listener

Parameters:
listener - the listener to unregister

getSchema

Schema getSchema(Set<URI> namespaces)
                 throws SAXException,
                        IOException
Obtain a schema to validate the XML for the given list of namespaces

Parameters:
namespaces -
Returns:
Throws:
SAXException
IOException

destroy

void destroy()
Destroy this registry



Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.