public abstract class AbstractFeature extends WebServiceFeature implements AbstractPortableFeature
By default the initialize methods all delegate to initializeProvider(InterceptorProvider). If you're simply adding interceptors to a Server, Client, or Bus, this allows you to add them easily.
enabled
Constructor and Description |
---|
AbstractFeature() |
Modifier and Type | Method and Description |
---|---|
void |
doInitializeProvider(InterceptorProvider provider,
Bus bus) |
static <T> T |
getActive(List<? extends Feature> features,
Class<T> type)
Convenience method to extract a feature by type from an active list.
|
String |
getID() |
protected void |
initializeProvider(InterceptorProvider provider,
Bus bus) |
boolean |
isEnabled() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, initialize, initialize, initialize
public String getID()
getID
in class WebServiceFeature
public boolean isEnabled()
isEnabled
in class WebServiceFeature
public void doInitializeProvider(InterceptorProvider provider, Bus bus)
doInitializeProvider
in interface AbstractPortableFeature
protected void initializeProvider(InterceptorProvider provider, Bus bus)
public static <T> T getActive(List<? extends Feature> features, Class<T> type)
AbstractPortableFeature
getActive
in interface AbstractPortableFeature
features
- the given feature listtype
- the feature type requiredApache CXF