org.mule.transport.jcr.handlers
Class NodeTypeHandlerManager

java.lang.Object
  extended by org.mule.transport.jcr.handlers.NodeTypeHandlerManager

public class NodeTypeHandlerManager
extends Object

The manager for all JCR node type handlers.

Author:
David Dossot (david@dossot.net)

Constructor Summary
NodeTypeHandlerManager()
           
 
Method Summary
 NodeTypeHandler getChildNodeTypeHandler(javax.jcr.Node parentNode)
          Get the default type handler for child nodes of the passed parent node.
 NodeTypeHandler getNodeTypeHandler(javax.jcr.Node node)
          Gets the node type handler for a particular node.
 NodeTypeHandler getNodeTypeHandler(String nodeTypeName)
          Gets the node type handler for a particular node type name.
 void registerHandler(NodeTypeHandler handler)
          Registers a new NodeTypeHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeTypeHandlerManager

public NodeTypeHandlerManager()
Method Detail

registerHandler

public void registerHandler(NodeTypeHandler handler)
Registers a new NodeTypeHandler. The manager calls initialize first, then registers the handler.

Parameters:
handler - the new handler.

getChildNodeTypeHandler

public NodeTypeHandler getChildNodeTypeHandler(javax.jcr.Node parentNode)
Get the default type handler for child nodes of the passed parent node.

Parameters:
parentNode - the node whose default child node type will be used to get an handler.
Returns:
the default child type handler.

getNodeTypeHandler

public NodeTypeHandler getNodeTypeHandler(javax.jcr.Node node)
Gets the node type handler for a particular node.

Parameters:
node - the node for which the appropriate type handler will be returned.
Returns:
the node type handler.

getNodeTypeHandler

public NodeTypeHandler getNodeTypeHandler(String nodeTypeName)
Gets the node type handler for a particular node type name.

Parameters:
nodeTypeName - the node type name for which the appropriate type handler will be returned.
Returns:
the node type handler.


Copyright © 2011. All Rights Reserved.