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.
|
Constructor Summary |
ExternalMetadataReader(java.util.Collection<java.io.File> files,
java.util.Collection<java.lang.String> resourcePaths,
java.lang.ClassLoader classLoader,
boolean xsdValidation,
boolean disableXmlSecurity)
|
|
Method Summary |
<A extends java.lang.annotation.Annotation>
A |
|
getAnnotation(java.lang.Class<A> annType,
java.lang.Class<?> cls)
|
<A extends java.lang.annotation.Annotation>
A |
|
getAnnotation(java.lang.Class<A> annType,
java.lang.reflect.Method m)
|
java.lang.annotation.Annotation[] |
getAnnotations(java.lang.Class<?> c)
|
java.lang.annotation.Annotation[] |
getAnnotations(java.lang.reflect.Method m)
|
java.lang.annotation.Annotation[][] |
getParameterAnnotations(java.lang.reflect.Method m)
|
void |
getProperties(java.util.Map<java.lang.String,java.lang.Object> prop,
java.lang.Class<?> cls)
|
void |
getProperties(java.util.Map<java.lang.String,java.lang.Object> prop,
java.lang.reflect.Method m)
|
void |
getProperties(java.util.Map<java.lang.String,java.lang.Object> prop,
java.lang.reflect.Method m,
int pos)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalMetadataReader
public ExternalMetadataReader(java.util.Collection<java.io.File> files,
java.util.Collection<java.lang.String> resourcePaths,
java.lang.ClassLoader classLoader,
boolean xsdValidation,
boolean disableXmlSecurity)
getAnnotation
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annType,
java.lang.Class<?> cls)
- Specified by:
getAnnotation in interface MetadataReader- Overrides:
getAnnotation in class ReflectAnnotationReader
getAnnotations
public java.lang.annotation.Annotation[] getAnnotations(java.lang.Class<?> c)
- Specified by:
getAnnotations in interface MetadataReader- Overrides:
getAnnotations in class ReflectAnnotationReader
getAnnotations
public java.lang.annotation.Annotation[] getAnnotations(java.lang.reflect.Method m)
- Specified by:
getAnnotations in interface MetadataReader- Overrides:
getAnnotations in class ReflectAnnotationReader
getAnnotation
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annType,
java.lang.reflect.Method m)
- Specified by:
getAnnotation in interface MetadataReader- Overrides:
getAnnotation in class ReflectAnnotationReader
getParameterAnnotations
public java.lang.annotation.Annotation[][] getParameterAnnotations(java.lang.reflect.Method m)
- Specified by:
getParameterAnnotations in interface MetadataReader- Overrides:
getParameterAnnotations in class ReflectAnnotationReader
getProperties
public void getProperties(java.util.Map<java.lang.String,java.lang.Object> prop,
java.lang.Class<?> cls)
- Specified by:
getProperties in interface MetadataReader- Overrides:
getProperties in class ReflectAnnotationReader
getProperties
public void getProperties(java.util.Map<java.lang.String,java.lang.Object> prop,
java.lang.reflect.Method m)
- Specified by:
getProperties in interface MetadataReader- Overrides:
getProperties in class ReflectAnnotationReader
getProperties
public void getProperties(java.util.Map<java.lang.String,java.lang.Object> prop,
java.lang.reflect.Method m,
int pos)
- Specified by:
getProperties in interface MetadataReader- Overrides:
getProperties in class ReflectAnnotationReader
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.