Class AbstractFeature

All Implemented Interfaces:
AbstractPortableFeature, Feature
Direct Known Subclasses:
DelegatingFeature, WrappedFeature, WSAddressingFeature

public abstract class AbstractFeature extends implements AbstractPortableFeature
A Feature is something that is able to customize a Server, Client, or Bus, typically adding capabilities. For instance, there may be a LoggingFeature which configures one of the above to log each of their messages.

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.

  • Constructor Details

    • AbstractFeature

      public AbstractFeature()
  • Method Details

    • getID

      public String getID()
      Specified by:
      getID in class
    • isEnabled

      public boolean isEnabled()
      isEnabled in class
    • doInitializeProvider

      public void doInitializeProvider(InterceptorProvider provider, Bus bus)
      Specified by:
      doInitializeProvider in interface AbstractPortableFeature
    • initializeProvider

      protected void initializeProvider(InterceptorProvider provider, Bus bus)
    • getActive

      public static <T> T getActive(List<? extends Feature> features, Class<T> type)
      Description copied from interface: AbstractPortableFeature
      Convenience method to extract a feature by type from an active list.
      features - the given feature list
      type - the feature type required
      the feature of the specified type if active