Tabnine Logo
CompositeResourceLoader.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.beetl.core.resource.CompositeResourceLoader
constructor

Best Java code snippets using org.beetl.core.resource.CompositeResourceLoader.<init> (Showing top 3 results out of 315)

origin: looly/hutool

/**
 * 创建引擎
 * 
 * @param config 模板配置
 * @return {@link GroupTemplate}
 */
private static GroupTemplate createEngine(TemplateConfig config) {
  if (null == config) {
    config = new TemplateConfig();
  }
  switch (config.getResourceMode()) {
  case CLASSPATH:
    return createGroupTemplate(new ClasspathResourceLoader(config.getPath(), config.getCharsetStr()));
  case FILE:
    return createGroupTemplate(new FileResourceLoader(config.getPath(), config.getCharsetStr()));
  case WEB_ROOT:
    return createGroupTemplate(new WebAppResourceLoader(config.getPath(), config.getCharsetStr()));
  case STRING:
    return createGroupTemplate(new StringTemplateResourceLoader());
  case COMPOSITE:
    //TODO 需要定义复合资源加载器
    return createGroupTemplate(new CompositeResourceLoader());
  default:
    return new GroupTemplate();
  }
}
origin: looly/hutool

/**
 * 创建引擎
 * 
 * @param config 模板配置
 * @return {@link GroupTemplate}
 */
private static GroupTemplate createEngine(TemplateConfig config) {
  if (null == config) {
    config = new TemplateConfig();
  }
  switch (config.getResourceMode()) {
  case CLASSPATH:
    return createGroupTemplate(new ClasspathResourceLoader(config.getPath(), config.getCharsetStr()));
  case FILE:
    return createGroupTemplate(new FileResourceLoader(config.getPath(), config.getCharsetStr()));
  case WEB_ROOT:
    return createGroupTemplate(new WebAppResourceLoader(config.getPath(), config.getCharsetStr()));
  case STRING:
    return createGroupTemplate(new StringTemplateResourceLoader());
  case COMPOSITE:
    //TODO 需要定义复合资源加载器
    return createGroupTemplate(new CompositeResourceLoader());
  default:
    return new GroupTemplate();
  }
}
origin: cn.hutool/hutool-all

/**
 * 创建引擎
 * 
 * @param config 模板配置
 * @return {@link GroupTemplate}
 */
private static GroupTemplate createEngine(TemplateConfig config) {
  if (null == config) {
    config = new TemplateConfig();
  }
  switch (config.getResourceMode()) {
  case CLASSPATH:
    return createGroupTemplate(new ClasspathResourceLoader(config.getPath(), config.getCharsetStr()));
  case FILE:
    return createGroupTemplate(new FileResourceLoader(config.getPath(), config.getCharsetStr()));
  case WEB_ROOT:
    return createGroupTemplate(new WebAppResourceLoader(config.getPath(), config.getCharsetStr()));
  case STRING:
    return createGroupTemplate(new StringTemplateResourceLoader());
  case COMPOSITE:
    //TODO 需要定义复合资源加载器
    return createGroupTemplate(new CompositeResourceLoader());
  default:
    return new GroupTemplate();
  }
}
org.beetl.core.resourceCompositeResourceLoader<init>

Popular methods of CompositeResourceLoader

  • addResourceLoader
    添加一个资源加载器
  • match

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JPanel (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now