Package com.sun.xml.ws.model
Class ExternalMetadataReader
- java.lang.Object
-
- com.sun.xml.ws.model.ReflectAnnotationReader
-
- 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
Constructors Constructor Description ExternalMetadataReader(Collection<File> files, Collection<String> resourcePaths, ClassLoader classLoader, boolean xsdValidation, boolean disableXmlSecurity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A extends Annotation>
AgetAnnotation(Class<A> annType, Class<?> cls)<A extends Annotation>
AgetAnnotation(Class<A> annType, Method m)Annotation[]getAnnotations(Class<?> c)Annotation[]getAnnotations(Method m)Annotation[][]getParameterAnnotations(Method m)voidgetProperties(Map<String,Object> prop, Class<?> cls)voidgetProperties(Map<String,Object> prop, Method m)voidgetProperties(Map<String,Object> prop, Method m, int pos)
-
-
-
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:
getAnnotationin interfaceMetadataReader- Overrides:
getAnnotationin classReflectAnnotationReader
-
getAnnotations
public Annotation[] getAnnotations(Class<?> c)
- Specified by:
getAnnotationsin interfaceMetadataReader- Overrides:
getAnnotationsin classReflectAnnotationReader
-
getAnnotations
public Annotation[] getAnnotations(Method m)
- Specified by:
getAnnotationsin interfaceMetadataReader- Overrides:
getAnnotationsin classReflectAnnotationReader
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<A> annType, Method m)
- Specified by:
getAnnotationin interfaceMetadataReader- Overrides:
getAnnotationin classReflectAnnotationReader
-
getParameterAnnotations
public Annotation[][] getParameterAnnotations(Method m)
- Specified by:
getParameterAnnotationsin interfaceMetadataReader- Overrides:
getParameterAnnotationsin classReflectAnnotationReader
-
getProperties
public void getProperties(Map<String,Object> prop, Class<?> cls)
- Specified by:
getPropertiesin interfaceMetadataReader- Overrides:
getPropertiesin classReflectAnnotationReader
-
getProperties
public void getProperties(Map<String,Object> prop, Method m)
- Specified by:
getPropertiesin interfaceMetadataReader- Overrides:
getPropertiesin classReflectAnnotationReader
-
getProperties
public void getProperties(Map<String,Object> prop, Method m, int pos)
- Specified by:
getPropertiesin interfaceMetadataReader- Overrides:
getPropertiesin classReflectAnnotationReader
-
-