Package com.citytechinc.cq.component.annotations.transformer

Examples of com.citytechinc.cq.component.annotations.transformer.Transformer


    Map<String, ComponentNameTransformer> transformers = new HashMap<String, ComponentNameTransformer>();

    for (Class<?> c : reflections.getTypesAnnotatedWith(Transformer.class)) {
      if (Arrays.asList(c.getInterfaces()).contains(ComponentNameTransformer.class)) {
        CtClass ctclass = classPool.getCtClass(c.getName());
        Transformer transformer = (Transformer) ctclass.getAnnotation(Transformer.class);
        transformers.put(transformer.value(), (ComponentNameTransformer) c.newInstance());
      }
    }

    return transformers;
  }
View Full Code Here


    Map<String, ComponentNameTransformer> transformers = new HashMap<String, ComponentNameTransformer>();

    for (Class<?> c : reflections.getTypesAnnotatedWith(Transformer.class)) {
      if (Arrays.asList(c.getInterfaces()).contains(ComponentNameTransformer.class)) {
        CtClass ctclass = classPool.getCtClass(c.getName());
        Transformer transformer = (Transformer) ctclass.getAnnotation(Transformer.class);
        transformers.put(transformer.value(), (ComponentNameTransformer) c.newInstance());
      }
    }

    return transformers;
  }
View Full Code Here

TOP

Related Classes of com.citytechinc.cq.component.annotations.transformer.Transformer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.