@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(); }
@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(); }