org.milyn.delivery
Class ContentHandlerConfigMap<T extends ContentHandler>

java.lang.Object
  extended by org.milyn.delivery.ContentHandlerConfigMap<T>

public class ContentHandlerConfigMap<T extends ContentHandler>
extends Object

Mapping between a resource configuration and its corresponding resource configuration.

Obviously this class is only relevant when the resource configuration refers to a ContentHandler.

Author:
tfennelly

Constructor Summary
ContentHandlerConfigMap(T contentHandler, SmooksResourceConfiguration resourceConfig)
          Public constructor.
 
Method Summary
 T getContentHandler()
          Get the content handler.
 SmooksResourceConfiguration getResourceConfig()
          Get the resource configuration.
 boolean isLifecycleCleanable()
          Does the ContentHandler implement ExecutionLifecycleCleanable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentHandlerConfigMap

public ContentHandlerConfigMap(T contentHandler,
                               SmooksResourceConfiguration resourceConfig)
Public constructor.

Parameters:
contentHandler - The content handler instance.
resourceConfig - The defining resource configuration.
Method Detail

getContentHandler

public T getContentHandler()
Get the content handler.

Returns:
The ContentHandler.

getResourceConfig

public SmooksResourceConfiguration getResourceConfig()
Get the resource configuration.

Returns:
The SmooksResourceConfiguration.

isLifecycleCleanable

public boolean isLifecycleCleanable()
Does the ContentHandler implement ExecutionLifecycleCleanable.

Returns:
True if the ContentHandler implements ExecutionLifecycleCleanable, otherwise false.


Copyright © 2009. All Rights Reserved.