Class BridgeBuilder<S,​F>


  • public class BridgeBuilder<S,​F>
    extends java.lang.Object
    Used by the PipelineBuilderImpl to create bridge classes and to create instances of bridge classes. A bridge class implements the service interface. Within the chain, bridge 1 is passed to filter 1. Invoking methods on bridge 1 will invoke methods on filter 2.
    • Constructor Summary

      Constructors 
      Constructor Description
      BridgeBuilder​(org.slf4j.Logger logger, java.lang.Class<S> serviceInterface, java.lang.Class<F> filterInterface, PlasticProxyFactory proxyFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      S instantiateBridge​(S nextBridge, F filter)
      Instantiates a bridge object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BridgeBuilder

        public BridgeBuilder​(org.slf4j.Logger logger,
                             java.lang.Class<S> serviceInterface,
                             java.lang.Class<F> filterInterface,
                             PlasticProxyFactory proxyFactory)
    • Method Detail

      • instantiateBridge

        public S instantiateBridge​(S nextBridge,
                                   F filter)
        Instantiates a bridge object.
        Parameters:
        nextBridge - the next Bridge object in the pipeline, or the terminator service
        filter - the filter object for this step of the pipeline