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:
- [email protected], [email protected]
-
-
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)
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)
-
-
-
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 interfaceMetadataReader
- Overrides:
getAnnotation
in classReflectAnnotationReader
-
getAnnotations
public Annotation[] getAnnotations(Class<?> c)
- Specified by:
getAnnotations
in interfaceMetadataReader
- Overrides:
getAnnotations
in classReflectAnnotationReader
-
getAnnotations
public Annotation[] getAnnotations(Method m)
- Specified by:
getAnnotations
in interfaceMetadataReader
- Overrides:
getAnnotations
in classReflectAnnotationReader
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<A> annType, Method m)
- Specified by:
getAnnotation
in interfaceMetadataReader
- Overrides:
getAnnotation
in classReflectAnnotationReader
-
getParameterAnnotations
public Annotation[][] getParameterAnnotations(Method m)
- Specified by:
getParameterAnnotations
in interfaceMetadataReader
- Overrides:
getParameterAnnotations
in classReflectAnnotationReader
-
getProperties
public void getProperties(Map<String,Object> prop, Class<?> cls)
- Specified by:
getProperties
in interfaceMetadataReader
- Overrides:
getProperties
in classReflectAnnotationReader
-
getProperties
public void getProperties(Map<String,Object> prop, Method m)
- Specified by:
getProperties
in interfaceMetadataReader
- Overrides:
getProperties
in classReflectAnnotationReader
-
getProperties
public void getProperties(Map<String,Object> prop, Method m, int pos)
- Specified by:
getProperties
in interfaceMetadataReader
- Overrides:
getProperties
in classReflectAnnotationReader
-
-