org.ow2.petals.se.validation.model
Class ValidationConfigurationHandler

java.lang.Object
  extended by org.ow2.petals.se.validation.model.ValidationConfigurationHandler

public class ValidationConfigurationHandler
extends java.lang.Object

A handler for Validation configurations.

Every element derived from the SU configuration and required at runtime is hold by such a handler.

Author:
Vincent Zurczak - EBM WebSourcing

Constructor Summary
ValidationConfigurationHandler(ValidationConfiguration validationConfiguration, java.util.logging.Logger logger)
          Constructor.
 
Method Summary
 java.lang.String getEndpointName()
           
 javax.xml.validation.Schema getSchema()
           
 void start(java.util.logging.Logger logger)
          Starts the handler.
 void stop()
          Stops the handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationConfigurationHandler

public ValidationConfigurationHandler(ValidationConfiguration validationConfiguration,
                                      java.util.logging.Logger logger)
Constructor.

Parameters:
validationConfiguration - a Validation configuration
logger - the component's logger
Method Detail

start

public void start(java.util.logging.Logger logger)
           throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException
Starts the handler.

An XSL transformer is created from the XSL style sheet and cached.
If the SU embeds JAR files, they are loaded in the class loader of the handler, so that they can be used by the XSL transformation.

Parameters:
logger - the component's logger
Throws:
org.ow2.petals.component.framework.api.exception.PEtALSCDKException - if the handler could not be started

stop

public void stop()
Stops the handler.

The schema instance is set to null.


getSchema

public javax.xml.validation.Schema getSchema()
Returns:
the schema

getEndpointName

public java.lang.String getEndpointName()
Returns:
the associated end-point name
See Also:
#getEndpointName()


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.