private OutputDefinitionRenderer() {
// Utility class, no public or protected default constructor
}
public static void render(StringBuilder buffer, ProcessorDefinition<?> processor) {
OutputDefinition out = (OutputDefinition)processor;
boolean notGlobal = buffer.toString().endsWith(")");
if (notGlobal) {
buffer.append(".");
}
buffer.append(out.getShortName());
if (out instanceof AOPDefinition) {
renderAop(buffer, out);
} else if (out instanceof BeanDefinition) {
renderBean(buffer, processor);
} else if (out instanceof EnrichDefinition) {
String enrich = out.toString();
String resourceUri = enrich.substring(enrich.indexOf('[') + 1, enrich.indexOf(' '));
buffer.append("(\"").append(resourceUri).append("\")");
} else if (out instanceof FinallyDefinition) {
renderFinally(buffer, out);
} else if (out instanceof InterceptDefinition) {