Package org.stringtree

Examples of org.stringtree.Fetcher


  }

  public Object getObject(String name) {
    Object ret = context.getObject(Templater.TEMPLATE + "." + name);
        if (null == ret) {
            Fetcher fetcher = (Fetcher)context.getObject(MojasefConstants.TEMPLATE_SOURCE);
            if (null != fetcher) {
                ret = fetcher.getObject(name);
            }
        }
       
        return ret;
  }
View Full Code Here


      put(MojasefConstants.SYSTEM_TIMESTAMP, new LiveDate());
  }
 
  protected void setTemplateFinder() {
        Fetcher source = (Fetcher) getObject(MojasefConstants.TEMPLATE_SOURCE);
        if (null == source) {
          if (null != templates) {
              source = templates;
          } else {
            source = this;
View Full Code Here

        put(Templater.TEMPLATE, new ContextTemplateFetcher(this));
        put(Templater.TEMPLATER, templater);
  }
   
    protected void setFileFinder() {
        Fetcher fileFetcher = (Fetcher) getObject(MojasefConstants.FILE_FETCHER);
        if (null == fileFetcher) {
            if (pub == null) {
                pub = new ContextFileFetcher(this);
            }
            put(MojasefConstants.FILE_FETCHER, pub);
View Full Code Here

    }

    @SuppressWarnings("unchecked")
    private void setApplicationContext() {
        Repository original = realRepository();
        Fetcher peelback = new PeelbackFetcher(original);
        Object object = peelback.getObject("http.application.context");
        if (null != object) {
            if (object instanceof Fetcher) {
                setOther(new FallbackRepository((Fetcher)object, original));
            } else if (object instanceof Map) {
                setOther(new FallbackRepository(new MapFetcher((Map<String, Object>)object), original));
View Full Code Here

TOP

Related Classes of org.stringtree.Fetcher

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.