org.eclipse.net4j.signal.wrapping
Class StreamWrapperInjector

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

public class StreamWrapperInjector
extends Object
implements IElementProcessor

An element post processor that injects a stream wrapper into signal protocol instances.


Constructor Summary
StreamWrapperInjector(String protocolID, IStreamWrapper streamWrapper)
           
 
Method Summary
 String getProtocolID()
           
 IStreamWrapper getStreamWrapper()
           
protected  Object inject(IManagedContainer container, String productGroup, String factoryType, String description, SignalProtocol<?> signalProtocol)
           
 Object process(IManagedContainer container, String productGroup, String factoryType, String description, Object element)
           
protected  boolean shouldInject(IManagedContainer container, String productGroup, String factoryType, String description, SignalProtocol<?> signalProtocol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamWrapperInjector

public StreamWrapperInjector(String protocolID,
                             IStreamWrapper streamWrapper)
Method Detail

getProtocolID

public String getProtocolID()

getStreamWrapper

public IStreamWrapper getStreamWrapper()

process

public Object process(IManagedContainer container,
                      String productGroup,
                      String factoryType,
                      String description,
                      Object element)
Specified by:
process in interface IElementProcessor

shouldInject

protected boolean shouldInject(IManagedContainer container,
                               String productGroup,
                               String factoryType,
                               String description,
                               SignalProtocol<?> signalProtocol)

inject

protected Object inject(IManagedContainer container,
                        String productGroup,
                        String factoryType,
                        String description,
                        SignalProtocol<?> signalProtocol)


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.