org.jboss.metadata.annotation.creator.ws
Class WebServiceHandlerChainProcessor<E extends AnnotatedElement>

java.lang.Object
  extended by org.jboss.metadata.annotation.creator.AbstractFinderUser
      extended by org.jboss.metadata.annotation.creator.ws.WebServiceHandlerChainProcessor<E>
All Implemented Interfaces:
Processor<ServiceReferenceMetaData,E>

public class WebServiceHandlerChainProcessor<E extends AnnotatedElement>
extends AbstractFinderUser
implements Processor<ServiceReferenceMetaData,E>

Version:
$Revision $
Author:
Emanuel Muckenhuber

Field Summary
 
Fields inherited from class org.jboss.metadata.annotation.creator.AbstractFinderUser
finder
 
Constructor Summary
WebServiceHandlerChainProcessor(AnnotationFinder<AnnotatedElement> finder)
           
 
Method Summary
 Collection<Class<? extends Annotation>> getAnnotationTypes()
          Get the annotations handled by this processor.
protected  InputStream getResourceInputStream(E type, String file)
          Returns the InputStream of a specified file.
 void process(ServiceReferenceMetaData refs, E type)
          Process a piece of meta data.
protected  void process(ServiceReferenceMetaData refs, E element, javax.jws.HandlerChain annotation)
           
protected  ServiceReferenceHandlerChainsMetaData unmarshall(InputStream in)
          Unmarshal the handler-chains xml file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceHandlerChainProcessor

public WebServiceHandlerChainProcessor(AnnotationFinder<AnnotatedElement> finder)
Method Detail

process

public void process(ServiceReferenceMetaData refs,
                    E type)
Description copied from interface: Processor
Process a piece of meta data.

Specified by:
process in interface Processor<ServiceReferenceMetaData,E extends AnnotatedElement>
Parameters:
refs - the meta data
type - the annotated element

process

protected void process(ServiceReferenceMetaData refs,
                       E element,
                       javax.jws.HandlerChain annotation)

unmarshall

protected ServiceReferenceHandlerChainsMetaData unmarshall(InputStream in)
                                                    throws org.jboss.xb.binding.JBossXBException
Unmarshal the handler-chains xml file.

Parameters:
in - the input stream of the file
Returns:
ServiceReferenceHandlerChainsMetaData
Throws:
org.jboss.xb.binding.JBossXBException

getResourceInputStream

protected InputStream getResourceInputStream(E type,
                                             String file)
                                      throws MalformedURLException,
                                             IOException,
                                             IllegalStateException
Returns the InputStream of a specified file. 1. An absolute java.net.URL in externalForm (ex: http://myhandlers.foo.com/handlerfile1.xml). 2. A relative path from the source file or class file (ex: bar/handlerfile1.xml).

Parameters:
type - the declaring class
file - the specified filename
Returns:
the InputStream of the file or throws an IllegalStateException if the file was not found
Throws:
MalformedURLException, - IOException, IllegalStateException
MalformedURLException
IOException
IllegalStateException

getAnnotationTypes

public Collection<Class<? extends Annotation>> getAnnotationTypes()
Description copied from interface: Processor
Get the annotations handled by this processor.

Specified by:
getAnnotationTypes in interface Processor<ServiceReferenceMetaData,E extends AnnotatedElement>
Returns:
the processed annotation types


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.