Wire createWire(PhysicalWire physicalWire) throws Fabric3Exception { Wire wire = new WireImpl(); for (PhysicalOperation operation : physicalWire.getOperations()) { InvocationChain chain = new InvocationChainImpl(operation); for (PhysicalInterceptor physicalInterceptor : operation.getInterceptors()) { InterceptorBuilder<? super PhysicalInterceptor> builder = Cast.cast(interceptorBuilders.get(physicalInterceptor.getClass())); Interceptor interceptor = builder.build(physicalInterceptor); chain.addInterceptor(interceptor); } wire.addInvocationChain(chain); } return wire; }
Wire createWire(PhysicalWire physicalWire) throws Fabric3Exception { Wire wire = new WireImpl(); for (PhysicalOperation operation : physicalWire.getOperations()) { InvocationChain chain = new InvocationChainImpl(operation); for (PhysicalInterceptor physicalInterceptor : operation.getInterceptors()) { InterceptorBuilder<? super PhysicalInterceptor> builder = Cast.cast(interceptorBuilders.get(physicalInterceptor.getClass())); Interceptor interceptor = builder.build(physicalInterceptor); chain.addInterceptor(interceptor); } wire.addInvocationChain(chain); } return wire; }