Package java.util

Examples of java.util.ResourceBundle.containsKey()


        log.info("errai cdi running as regular extension.");
      }
    }

    final String dispatchImplKey = "errai.dispatcher_implementation";
    if (erraiServiceConfig.containsKey(dispatchImplKey)) {
      if (AsyncDispatcher.class.getName().equals(erraiServiceConfig.getString(dispatchImplKey))) {
        throw new ErraiBootstrapFailure("Cannot start Errai CDI. You have have configured the service to use the " +
            AsyncDispatcher.class.getName()
            + " dispatcher implementation. Due to limitations of Weld, you must use the " +
            SimpleDispatcher.class.getName() + " in order to use this module.");
View Full Code Here


                bundle = getBundle(bundleId, locale, false);
            } else {
                bundle = getBundle(loggerName, locale, true);
            }
        }
        String msgPattern = (bundle == null || !bundle.containsKey(messagePattern)) ?
            messagePattern : bundle.getString(messagePattern);
        return format(msgPattern, args);
    }

    /**
 
View Full Code Here

        try {
            ResourceBundle bundle = resources;
            if(forcedLocale != null) {
                bundle = ResourceBundle.getBundle("org.apache.jmeter.resources.messages", forcedLocale); // $NON-NLS-1$
            }
            if (bundle.containsKey(resKey)) {
                resString = bundle.getString(resKey);
            } else {
                log.warn("ERROR! Resource string not found: [" + resKey + "]");
                resString = defaultValue;               
            }
View Full Code Here

        ResourceBundle b = (ResourceBundle) beanInfo.getBeanDescriptor().getValue(RESOURCE_BUNDLE);
        if (b == null) {
            return group;
        }
        String key = new StringBuilder(group).append(".displayName").toString();
        if (b.containsKey(key)) {
            return b.getString(key);
        } else {
            return group;
        }
    }
View Full Code Here

                    connectorModel.supportsRenewToken = connector.supportsRenewTokens;
                    connectorModel.supportsSync = connector.supportsSync;
                    connectorModel.supportsFileUpload = connector.supportsFileUpload;
                    connectorModel.prettyName = conn.prettyName();
                    final String uploadMessageKey = conn.getName() + ".upload";
                    if (res.containsKey(uploadMessageKey)) {
                        final String uploadMessage = res.getString(uploadMessageKey);
                        connectorModel.uploadMessage = uploadMessage;
                    }
                    connectorsArray.add(connectorModel);
                }
View Full Code Here


    try {
      log.info("configuring Errai CDI");
      ResourceBundle erraiServiceConfig = getBundle("ErraiService");
      if (erraiServiceConfig.containsKey(ERRAI_CDI_STANDALONE)) {
        standalone = "true".equals(erraiServiceConfig.getString(ERRAI_CDI_STANDALONE).trim());

        if (standalone) {
          log.info("Errai CDI running in standalone mode.");
        }
View Full Code Here

          log.info("Errai CDI running in add-on mode.");
        }
      }

      final String dispatchImplKey = "errai.dispatcher_implementation";
      if (erraiServiceConfig.containsKey(dispatchImplKey)) {
        if (AsyncDispatcher.class.getName().equals(erraiServiceConfig.getString(dispatchImplKey))) {
          throw new ErraiBootstrapFailure("Cannot start Errai CDI. You have have configured the service to use the " +
                  AsyncDispatcher.class.getName() + " dispatcher implementation. Due to limitations of Weld, you must use the " +
                  SimpleDispatcher.class.getName() + " in order to use this module.");
        }
View Full Code Here

   */
  public ValidateMultipleFields() {
    String componentType = getClass().getAnnotation(FacesComponent.class).value();
    ResourceBundle messageBundle = getMessageBundle();

    if (messageBundle == null || !messageBundle.containsKey(componentType)) {
      messageBundle = getBundle(DEFAULT_MESSAGE_BUNDLE, getLocale());
    }

    defaultMessage = messageBundle.getString(componentType);
    setRendererType(null);
View Full Code Here

        }
        if (literal == null) {
            return "";
        }
        ResourceBundle rb = getDefault();
        if (rb != null && rb.containsKey(literal)) {
            return rb.getString(literal);
        } else {

            // Se abilitato il debug allora tutte le stringhe che non trovo
            // finiscono in un file di missing.
View Full Code Here

        }
        if (literal == null) {
            return "";
        }
        ResourceBundle rb = getDefault();
        if (rb != null && rb.containsKey(literal)) {
            return rb.getString(literal);
        } else {

            // Se abilitato il debug allora tutte le stringhe che non trovo
            // finiscono in un file di missing.
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.