Examples of ResourceManager


Examples of org.apache.velocity.runtime.resource.ResourceManager

         *  and introspector
         */

        vmFactory = new VelocimacroFactory( this );

        resourceManager = new ResourceManager( this );
       
        /*
         *  make a new introspector and initialize it
         */
        
View Full Code Here

Examples of org.arch4j.ui.ResourceManager

     * Create an instance of the ResourceManager. Subclasses will override
     * this to populate the resource manager differently.
     */
    protected void initializeResourceManager() {
        showStartupStatus( "Initializing resources..." );
        resourceMgr = new ResourceManager();
        new XMLResourceBuilder(resourceMgr, "main_resources.xml").populateResources();
    }
View Full Code Here

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

Examples of org.chromium.debug.core.model.ResourceManager

  public Object[] findSourceElements(String name) {
    if (chromiumSourceDirector == null) {
      return new Object[0];
    }
    ResourceManager resourceManager = chromiumSourceDirector.getResourceManager();
    LookupResult lookupResult = new LookupResult(resourceManager);
    return new Object[] { lookupResult };
  }
View Full Code Here

Examples of org.eclipse.jface.resource.ResourceManager

   * @return <code>true</code> if there are images for this action,
   *         <code>false</code> if not
   */
  private boolean updateImages(boolean forceImage) {

    ResourceManager parentResourceManager = JFaceResources.getResources();

    if (widget instanceof ToolItem) {
      if (USE_COLOR_ICONS) {
        ImageDescriptor image = action.getHoverImageDescriptor();
        if (image == null) {
View Full Code Here

Examples of org.eclipse.rap.rwt.service.ResourceManager

  String swtImageAsPNGResourceURL( Image image ) {
    ImageLoader loader = new ImageLoader();
    loader.data = new ImageData[] {image.getImageData()};
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    loader.save(outputStream, SWT.IMAGE_PNG);
    ResourceManager manager = RWT.getResourceManager();
    String name = image.hashCode() + ".png";
    manager.register( name, new ByteArrayInputStream( outputStream.toByteArray() ) );
    return manager.getLocation( name );
  }
View Full Code Here

Examples of org.eobjects.datacleaner.util.ResourceManager

    File parentFile = file.getParentFile();
    if (!parentFile.exists() && !parentFile.mkdirs()) {
      logger.warn("Could not create directory for file in DATACLEANER_HOME: " + filename);
      return;
    }
    ResourceManager resourceManager = ResourceManager.getInstance();
    URL url = resourceManager.getUrl("datacleaner-home/" + filename);

    InputStream is = null;
    OutputStream os = null;
    try {
      is = url.openStream();
View Full Code Here

Examples of org.freerealm.resource.ResourceManager

     * Executes command to reset the given realm.
     * @param realm Realm to execute the command
     * @return CommandResult
     */
    public CommandResult execute(Realm realm) {
        realm.setResourceManager(new ResourceManager());
        realm.setBonusResourceManager(new BonusResourceManager());
        realm.setTileTypeManager(new TileTypeManager());
        realm.setVegetationManager(new VegetationManagerImpl());
        realm.setTileImprovementTypeManager(new TileImprovementTypeManager());
        realm.setSettlementImprovementManager(new SettlementImprovementManager());
View Full Code Here

Examples of org.fto.jthink.resource.ResourceManager

    LogManager.configure(config);
//    /* 返回日志处理接口 */
//    logger = LogManager.getLogger(SQLTestCase.class);
   
    /* 初始化资源管理器 */
    ResourceManager resManager = new ResourceManager();
    /* 将配置文件加入到资源管理器中 */
    resManager.setResource(Configuration.class.getName(), config);
   
    /* 初始化事务管理器 */
    TransactionManager transactionManager = new DefaultTransactionManager(resManager, config);
    /* 将事务管理器加入到资源管理器中 */
    resManager.setResource(TransactionManager.class.getName(), transactionManager);
   
    /* 返回在fto-jthink.xml中配置的JDBC事务 */
    TransactionFactory transactionFactory = transactionManager.getTransactionFactory("SampleTransaction");
    JDBCTransaction transaction  = (JDBCTransaction)transactionFactory.create();
    /* 将此事务处理对象加入到事务管理器中 */
    transactionManager.addTransaction(JDBCTransaction.class.getName(), transaction);
    resManager.setResource(JDBCTransaction.class.getName(), transaction);
   
    return resManager;
  }
View Full Code Here

Examples of org.g4studio.core.resource.ResourceManager

        }
      }
    }
    sysProperties.putAll(configProperties);
    configuration.buildProperties(sysProperties);
    ResourceManager result = configuration.buildResourceManager();
    return result;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.