コード例 #1
0
 @Override
 public ResourceTransformer resolveTransformer(final PathAddress address) {
   if (transformationExclusion != null
       && transformationExclusion.isResourceTransformationIgnored(address)) {
     return ResourceTransformer.DEFAULT;
   }
   OperationTransformerRegistry.ResourceTransformerEntry entry =
       operationTransformers.resolveResourceTransformer(address);
   if (entry == null) {
     return ResourceTransformer.DEFAULT;
   }
   return entry.getTransformer();
 }
コード例 #2
0
 @Override
 public OperationTransformer resolveTransformer(
     final PathAddress address, final String operationName) {
   if (transformationExclusion != null
       && transformationExclusion.isOperationTransformationIgnored(address)) {
     return OperationTransformer.DEFAULT;
   }
   if (address.size() == 0) {
     // TODO use operationTransformers registry to register this operations.
     if (ModelDescriptionConstants.COMPOSITE.equals(operationName)) {
       return new CompositeOperationTransformer();
     }
   }
   final OperationTransformerRegistry.OperationTransformerEntry entry =
       operationTransformers.resolveOperationTransformer(address, operationName);
   return entry.getTransformer();
 }