Package org.jahia.services

Examples of org.jahia.services.SpringContextSingleton


    @SuppressWarnings("unchecked")
    private static Map<String, String> getFileExtensionIcons() {
        if (fileExtensionIcons == null) {
            synchronized (FileUtils.class) {
                if (fileExtensionIcons == null) {
                    SpringContextSingleton ctxHolder = SpringContextSingleton
                            .getInstance();
                    if (ctxHolder.isInitialized()) {
                        Map<String, String> icons = (Map<String, String>) ctxHolder
                                .getContext().getBean("fileExtensionIcons");
                        FastHashMap mappings = new FastHashMap(icons);
                        mappings.setFast(true);
                        String[] jsMappings = new String[2];
                        jsMappings[0] = new StringBuilder(512).append("\"")
View Full Code Here


    // do nothing
  }

  private CamelNotificationService getNotificationService() {
    if (notificationService == null) {
      SpringContextSingleton springCtx = SpringContextSingleton.getInstance();
      if (springCtx.isInitialized()) {
        notificationService = (CamelNotificationService) springCtx.getContext().getBean(
                "camelNotificationService");
      }
    }
    return notificationService;
  }
View Full Code Here

TOP

Related Classes of org.jahia.services.SpringContextSingleton

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.