com.sun.xml.ws.api
Class WebServiceFeatureFactory

java.lang.Object
  extended by com.sun.xml.ws.api.WebServiceFeatureFactory

public class WebServiceFeatureFactory
extends java.lang.Object

Factory methods to get web service features from the corresponding feature annotations


Constructor Summary
WebServiceFeatureFactory()
           
 
Method Summary
static javax.xml.ws.WebServiceFeature getWebServiceFeature(java.lang.annotation.Annotation ann)
          Returns a corresponding feature for a feature annotation(i.e which has WebServiceFeatureAnnotation meta annotation)
static WSFeatureList getWSFeatureList(java.lang.Iterable<java.lang.annotation.Annotation> ann)
          Returns a feature list for feature annotations(i.e which have WebServiceFeatureAnnotation meta annotation)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceFeatureFactory

public WebServiceFeatureFactory()
Method Detail

getWSFeatureList

public static WSFeatureList getWSFeatureList(java.lang.Iterable<java.lang.annotation.Annotation> ann)
Returns a feature list for feature annotations(i.e which have WebServiceFeatureAnnotation meta annotation)

Parameters:
ann - list of annotations(that can also have non-feature annotations)
Returns:
non-null feature list object

getWebServiceFeature

public static javax.xml.ws.WebServiceFeature getWebServiceFeature(java.lang.annotation.Annotation ann)
Returns a corresponding feature for a feature annotation(i.e which has WebServiceFeatureAnnotation meta annotation)

Parameters:
ann - any annotation, not required to be a feature annotation
Returns:
corresponding feature for the annotation null, if the annotation is not a feature annotation


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.