com.sun.xml.ws.model
Class ExternalMetadataReader

java.lang.Object
  extended by com.sun.xml.ws.model.ReflectAnnotationReader
      extended by com.sun.xml.ws.model.ExternalMetadataReader
All Implemented Interfaces:
MetadataReader

public class ExternalMetadataReader
extends ReflectAnnotationReader

Metadata Reader able to read from either class annotations or external metadata files or combine both, depending on configuration provided in xml file itself.

Author:
shih-chang.chen@oracle.com, miroslav.kos@oracle.com

Constructor Summary
ExternalMetadataReader(Collection<File> files, Collection<String> resourcePaths, ClassLoader classLoader, boolean xsdValidation, boolean disableXmlSecurity)
           
 
Method Summary
<A extends Annotation>
A
getAnnotation(Class<A> annType, Class<?> cls)
           
<A extends Annotation>
A
getAnnotation(Class<A> annType, Method m)
           
 Annotation[] getAnnotations(Class<?> c)
           
 Annotation[] getAnnotations(Method m)
           
 Annotation[][] getParameterAnnotations(Method m)
           
 void getProperties(Map<String,Object> prop, Class<?> cls)
           
 void getProperties(Map<String,Object> prop, Method m)
           
 void getProperties(Map<String,Object> prop, Method m, int pos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalMetadataReader

public ExternalMetadataReader(Collection<File> files,
                              Collection<String> resourcePaths,
                              ClassLoader classLoader,
                              boolean xsdValidation,
                              boolean disableXmlSecurity)
Method Detail

getAnnotation

public <A extends Annotation> A getAnnotation(Class<A> annType,
                                              Class<?> cls)
Specified by:
getAnnotation in interface MetadataReader
Overrides:
getAnnotation in class ReflectAnnotationReader

getAnnotations

public Annotation[] getAnnotations(Class<?> c)
Specified by:
getAnnotations in interface MetadataReader
Overrides:
getAnnotations in class ReflectAnnotationReader

getAnnotations

public Annotation[] getAnnotations(Method m)
Specified by:
getAnnotations in interface MetadataReader
Overrides:
getAnnotations in class ReflectAnnotationReader

getAnnotation

public <A extends Annotation> A getAnnotation(Class<A> annType,
                                              Method m)
Specified by:
getAnnotation in interface MetadataReader
Overrides:
getAnnotation in class ReflectAnnotationReader

getParameterAnnotations

public Annotation[][] getParameterAnnotations(Method m)
Specified by:
getParameterAnnotations in interface MetadataReader
Overrides:
getParameterAnnotations in class ReflectAnnotationReader

getProperties

public void getProperties(Map<String,Object> prop,
                          Class<?> cls)
Specified by:
getProperties in interface MetadataReader
Overrides:
getProperties in class ReflectAnnotationReader

getProperties

public void getProperties(Map<String,Object> prop,
                          Method m)
Specified by:
getProperties in interface MetadataReader
Overrides:
getProperties in class ReflectAnnotationReader

getProperties

public void getProperties(Map<String,Object> prop,
                          Method m,
                          int pos)
Specified by:
getProperties in interface MetadataReader
Overrides:
getProperties in class ReflectAnnotationReader


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.