Package org.atomojo.www.util

Examples of org.atomojo.www.util.ResourceManager


     
      this.staticApplications = new ArrayList<AppInfo>();
      List<Link> metadataSet = hostConf.getLinks().get("metadata");
      Link metadata = metadataSet==null ? null : metadataSet.size()>0 ? metadataSet.get(0) : null;
      List<Link> autoconfList = hostConf.getLinks().get("autoconf");
      this.resourceManager = new ResourceManager(getLogger(),hostConf.getLinks());
      this.context.getAttributes().put(ResourceManager.ATTR, resourceManager);
      // TODO: make the expiration configurable
      client = context.getClientDispatcher();
      if (autoconfList!=null && autoconfList.size()>0) {
         autoConf = autoconfList.get(autoconfList.size()-1);
View Full Code Here


                  Response remoteResponse = null;
                  if (resourceName!=null) {
                     if (isFineLog) {
                        getLogger().fine("Using resource "+resourceName);
                     }
                     ResourceManager manager = (ResourceManager)getContext().getAttributes().get(ResourceManager.ATTR);
                     ResourceManager.Retriever retriever = manager.findResource(resourceName);
                     if (retriever!=null) {
                        remoteResponse = retriever.get();
                     } else {
                        getLogger().warning("No resource named "+resourceName);
                     }
View Full Code Here

         }
      }
      List<Link> metadataSet = hostConf.getLinks().get("metadata");
      Link metadata = metadataSet==null ? null : metadataSet.size()>0 ? metadataSet.get(0) : null;
      List<Link> autoconfList = hostConf.getLinks().get("autoconf");
      this.resourceManager = new ResourceManager(getLogger(),hostConf.getLinks());
      this.context.getAttributes().put(ResourceManager.ATTR, resourceManager);
      // TODO: make the expiration configurable
      client = context.getClientDispatcher();
      if (autoconfList!=null && autoconfList.size()>0) {
         autoConf = autoconfList.get(autoconfList.size()-1);
View Full Code Here

TOP

Related Classes of org.atomojo.www.util.ResourceManager

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.