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()
Get the unique identifier for this WebServiceFeature.
|
protected void |
initializeProvider(InterceptorProvider provider,
Bus bus) |
boolean |
isEnabled()
Returns
true if this feature is enabled. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, initialize, initialize, initialize
public String getID()
WebServiceFeature
getID
in class WebServiceFeature
public boolean isEnabled()
WebServiceFeature
true
if this feature is enabled.isEnabled
in class WebServiceFeature
true
if and only if the feature is enabled .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 requiredCopyright © 2021 JBoss by Red Hat. All rights reserved.