Class StreamWrapperInjector

java.lang.Object
org.eclipse.net4j.signal.wrapping.StreamWrapperInjector
All Implemented Interfaces:
org.eclipse.net4j.util.container.IElementProcessor
Direct Known Subclasses:
GZIPStreamWrapperInjector, XORStreamWrapperInjector

public class StreamWrapperInjector extends Object implements org.eclipse.net4j.util.container.IElementProcessor
An element post processor that injects a stream wrapper into signal protocol instances.
Author:
Eike Stepper
  • Constructor Details

    • StreamWrapperInjector

      public StreamWrapperInjector(String protocolID, org.eclipse.net4j.util.io.IStreamWrapper streamWrapper)
  • Method Details

    • getProtocolID

      public String getProtocolID()
    • getStreamWrapper

      public org.eclipse.net4j.util.io.IStreamWrapper getStreamWrapper()
    • process

      public Object process(org.eclipse.net4j.util.container.IManagedContainer container, String productGroup, String factoryType, String description, Object element)
      Specified by:
      process in interface org.eclipse.net4j.util.container.IElementProcessor
    • shouldInject

      protected boolean shouldInject(org.eclipse.net4j.util.container.IManagedContainer container, String productGroup, String factoryType, String description, SignalProtocol<?> signalProtocol)
    • inject

      protected Object inject(org.eclipse.net4j.util.container.IManagedContainer container, String productGroup, String factoryType, String description, SignalProtocol<?> signalProtocol)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object