com.sun.xml.ws.config.metro.dev
Class SimpleFeatureReader<T extends javax.xml.ws.WebServiceFeature>

java.lang.Object
  extended by com.sun.xml.ws.config.metro.dev.SimpleFeatureReader<T>
All Implemented Interfaces:
FeatureReader

public abstract class SimpleFeatureReader<T extends javax.xml.ws.WebServiceFeature>
extends Object
implements FeatureReader

Parse a feature with no further attributes than "enabled" and return it as a WebServiceFeature instance.

Author:
Fabian Ritzmann

Field Summary
 
Fields inherited from interface com.sun.xml.ws.config.metro.dev.FeatureReader
ENABLED_ATTRIBUTE_NAME
 
Constructor Summary
SimpleFeatureReader()
           
 
Method Summary
protected abstract  T createFeature(boolean enabled)
          Instantiate the proper feature class.
 T parse(javax.xml.stream.XMLEventReader reader)
          Parse an XML stream and return the corresponding WebServiceFeature instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFeatureReader

public SimpleFeatureReader()
Method Detail

parse

public T parse(javax.xml.stream.XMLEventReader reader)
                                               throws javax.xml.ws.WebServiceException
Description copied from interface: FeatureReader
Parse an XML stream and return the corresponding WebServiceFeature instance.

Specified by:
parse in interface FeatureReader
Throws:
javax.xml.ws.WebServiceException

createFeature

protected abstract T createFeature(boolean enabled)
                                                                   throws javax.xml.ws.WebServiceException
Instantiate the proper feature class.

Throws:
javax.xml.ws.WebServiceException


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