org.objectledge.templating.tools
Interface ContextToolFactory


public interface ContextToolFactory

Context tool factory interface.

Author:
Pawel Potempski

Method Summary
 String getKey()
          Get the key of the tool.
 Object getTool()
          Get the tool instance.
 void recycleTool(Object tool)
          Return the tool instance to the object pool.
 

Method Detail

getTool

Object getTool()
               throws ProcessingException
Get the tool instance.

Returns:
the tool instance.
Throws:
ProcessingException - if anything goes wrong.

recycleTool

void recycleTool(Object tool)
                 throws ProcessingException
Return the tool instance to the object pool.

Parameters:
tool - the tool instance.
Throws:
ProcessingException - if anything goes wrong.

getKey

String getKey()
Get the key of the tool.

Returns:
the tool key.


Copyright © 2003-2006 objectledge.org. All Rights Reserved.