org.wso2.carbon.registry.core.config
Class RegistryConfigurationProcessor.HandlerDefinitionObject

java.lang.Object
  extended by org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor.HandlerDefinitionObject
Enclosing class:
RegistryConfigurationProcessor

public static class RegistryConfigurationProcessor.HandlerDefinitionObject
extends Object

Object to store a handler definition


Constructor Summary
RegistryConfigurationProcessor.HandlerDefinitionObject(CustomEditManager customEditManager, org.apache.axiom.om.OMElement handlerConfigElement)
          Constructor accepting a handler configuration and the custom edit manager to use.
RegistryConfigurationProcessor.HandlerDefinitionObject(org.apache.axiom.om.OMElement handlerConfigElement)
          Constructor accepting a handler configuration.
 
Method Summary
 Filter getFilter()
          Gets the filter instance.
 Handler getHandler()
          Gets the handler instance.
 String[] getMethods()
          Get methods to which this handler is engaged.
 int getTenantId()
          Gets the tenant identifier
 RegistryConfigurationProcessor.HandlerDefinitionObject invoke()
          Builds a handler definition object from XML configuration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryConfigurationProcessor.HandlerDefinitionObject

public RegistryConfigurationProcessor.HandlerDefinitionObject(CustomEditManager customEditManager,
                                                              org.apache.axiom.om.OMElement handlerConfigElement)
Constructor accepting a handler configuration and the custom edit manager to use.

Parameters:
customEditManager - the custom edit manager to use.
handlerConfigElement - the handler configuration element.

RegistryConfigurationProcessor.HandlerDefinitionObject

public RegistryConfigurationProcessor.HandlerDefinitionObject(org.apache.axiom.om.OMElement handlerConfigElement)
Constructor accepting a handler configuration.

Parameters:
handlerConfigElement - the handler configuration element.
Method Detail

getMethods

public String[] getMethods()
Get methods to which this handler is engaged.

Returns:
array of methods

getHandler

public Handler getHandler()
Gets the handler instance.

Returns:
the handler instance.

getTenantId

public int getTenantId()
Gets the tenant identifier

Returns:
tenant id

getFilter

public Filter getFilter()
Gets the filter instance.

Returns:
the filter instance.

invoke

public RegistryConfigurationProcessor.HandlerDefinitionObject invoke()
                                                              throws InstantiationException,
                                                                     IllegalAccessException,
                                                                     NoSuchMethodException,
                                                                     InvocationTargetException,
                                                                     org.wso2.carbon.user.core.UserStoreException
Builds a handler definition object from XML configuration

Returns:
the definition object
Throws:
InstantiationException - for errors in creating classes
IllegalAccessException - for exceptions due to invisibility of methods
NoSuchMethodException - for errors due to accessing non-existing methods.
InvocationTargetException - for errors in invoking methods or constructors.
org.wso2.carbon.user.core.UserStoreException - if an error occurs in user management related operations.


Copyright © 2011 WSO2 Inc. All Rights Reserved.