org.jboss.metadata.annotation.creator.ws
Class WebServiceHandlerChainProcessor<E extends AnnotatedElement>
java.lang.Object
org.jboss.metadata.annotation.creator.AbstractFinderUser
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebServiceHandlerChainProcessor
public WebServiceHandlerChainProcessor(AnnotationFinder<AnnotatedElement> finder)
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 datatype
- 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 classfile
- 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 © 2009 JBoss Inc.. All Rights Reserved.