Package com.jpoweredcart.common.system.media

Examples of com.jpoweredcart.common.system.media.DefaultMediaService


   
    if(applicationContext.containsBean("custom_mediaService")){
      return (MediaService)applicationContext.getBean("custom_mediaService");
    }
   
    DefaultMediaService defaultMediaService = new DefaultMediaService();
   
    String imgDir = env.getProperty("media.imageDir");
    String imgBaseUrl = env.getProperty("media.imageBaseUrl", "/files/images");
    defaultMediaService.setImageDir(getDefaultFilePath(imgDir, imgBaseUrl));
    defaultMediaService.setImageBaseUrl(getWebPath(imgBaseUrl));
   
    String thumbDir = env.getProperty("media.thumbnailDir");
    String thumbBaseUrl = env.getProperty("media.thumbnailBaseUrl", "/files/images/thumbnails");
    defaultMediaService.setThumbnailDir(getDefaultFilePath(thumbDir, thumbBaseUrl));
    defaultMediaService.setThumbnailBaseUrl(getWebPath(thumbBaseUrl));
   
    return defaultMediaService;
  }
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.system.media.DefaultMediaService

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.