private boolean checkOptimization(ServiceContract serviceContract, Set<PhysicalOperation> operationDefinitions) { if (serviceContract.isRemotable()) { return false; } for (PhysicalOperation operation : operationDefinitions) { if (!operation.getInterceptors().isEmpty()) { return false; } } return true; }
private boolean checkOptimization(ServiceContract serviceContract, Set<PhysicalOperation> operationDefinitions) { if (serviceContract.isRemotable()) { return false; } for (PhysicalOperation operation : operationDefinitions) { if (!operation.getInterceptors().isEmpty()) { return false; } } return true; }
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; }