public abstract class AbstractFeature extends WebServiceFeature implements Feature
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 |
---|---|
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.
|
void |
initialize(Bus bus) |
void |
initialize(Client client,
Bus bus) |
void |
initialize(InterceptorProvider interceptorProvider,
Bus bus) |
void |
initialize(Server server,
Bus bus) |
protected void |
initializeProvider(InterceptorProvider provider,
Bus bus) |
isEnabled
public String getID()
WebServiceFeature
getID
in class WebServiceFeature
public void initialize(Server server, Bus bus)
initialize
in interface Feature
public void initialize(Client client, Bus bus)
initialize
in interface Feature
public void initialize(InterceptorProvider interceptorProvider, Bus bus)
initialize
in interface Feature
public void initialize(Bus bus)
initialize
in interface Feature
protected void initializeProvider(InterceptorProvider provider, Bus bus)
Copyright © 2018 JBoss by Red Hat. All rights reserved.