@Resource(type="groovy") public class GroovyContentHandlerFactory implements ContentHandlerFactory {
private void registerInstalledHandlerFactories() { for (Class<ContentHandlerFactory> handlerFactory : handlerFactories) { Resource resourceAnnotation = handlerFactory.getAnnotation(Resource.class); if(resourceAnnotation != null) { addHandlerFactoryConfig(handlerFactory, resourceAnnotation.type()); } } // And add the Java handler... addHandlerFactoryConfig(JavaContentHandlerFactory.class, "class"); }
@Resource(type="groovy") public class GroovyContentHandlerFactory implements ContentHandlerFactory {
private void registerInstalledHandlerFactories() { for (Class<ContentHandlerFactory> handlerFactory : handlerFactories) { Resource resourceAnnotation = handlerFactory.getAnnotation(Resource.class); if(resourceAnnotation != null) { addHandlerFactoryConfig(handlerFactory, resourceAnnotation.type()); } } // And add the Java handler... addHandlerFactoryConfig(JavaContentHandlerFactory.class, "class"); }
@Resource(type="groovy") public class GroovyContentHandlerFactory implements ContentHandlerFactory {
private void registerInstalledHandlerFactories() { for (Class<ContentHandlerFactory> handlerFactory : handlerFactories) { Resource resourceAnnotation = handlerFactory.getAnnotation(Resource.class); if(resourceAnnotation != null) { addHandlerFactoryConfig(handlerFactory, resourceAnnotation.type()); } } // And add the Java handler... addHandlerFactoryConfig(JavaContentHandlerFactory.class, "class"); }
@Resource(type="ftl") public class FreeMarkerContentHandlerFactory implements ContentHandlerFactory {
private void registerInstalledHandlerFactories() { for (Class<ContentHandlerFactory> handlerFactory : handlerFactories) { Resource resourceAnnotation = handlerFactory.getAnnotation(Resource.class); if(resourceAnnotation != null) { addHandlerFactoryConfig(handlerFactory, resourceAnnotation.type()); } } // And add the Java handler... addHandlerFactoryConfig(JavaContentHandlerFactory.class, "class"); }
@Resource(type="ftl") public class FreeMarkerContentHandlerFactory implements ContentHandlerFactory {
@Resource(type="stv4") public class StringTemplateContentHandlerFactory implements ContentHandlerFactory {
@Resource(type="st") public class StringTemplateContentHandlerFactory implements ContentHandlerFactory {
@Resource(type="stv4") public class StringTemplateContentHandlerFactory implements ContentHandlerFactory {
@Resource(type="st") public class StringTemplateContentHandlerFactory implements ContentHandlerFactory {
@Resource(type = "xsl") public class XslContentHandlerFactory implements ContentHandlerFactory {
@Resource(type = "xsl") public class XslContentHandlerFactory implements ContentHandlerFactory {