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

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

public abstract class SimpleFeatureReader<T extends 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(XMLEventReader reader)
           
 
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(XMLEventReader reader)
                                  throws WebServiceException
Specified by:
parse in interface FeatureReader
Throws:
WebServiceException

createFeature

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

Throws:
WebServiceException


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