Tabnine Logo
EnvUtil.getEnvironmentConfig
Code IndexAdd Tabnine to your IDE (free)

How to use
getEnvironmentConfig
method
in
org.jboss.errai.config.rebind.EnvUtil

Best Java code snippets using org.jboss.errai.config.rebind.EnvUtil.getEnvironmentConfig (Showing top 14 results out of 315)

origin: errai/errai

public static boolean isForceStaticMarshallers() {
 if (System.getProperty(FORCE_STATIC_MARSHALLERS) != null) {
  return Boolean.getBoolean(FORCE_STATIC_MARSHALLERS);
 }
 final Map<String, String> frameworkProperties = EnvUtil.getEnvironmentConfig().getFrameworkProperties();
 if (frameworkProperties.containsKey(FORCE_STATIC_MARSHALLERS)) {
  return "true".equals(frameworkProperties.get(FORCE_STATIC_MARSHALLERS));
 }
 else {
  return false;
 }
}
origin: errai/errai

protected boolean getPropertyValue(final String propName,
                  final String matchValue,
                  final boolean matchByDefault,
                  final boolean caseSensitive) {
 final String propertyValue = EnvUtil.getEnvironmentConfig().getFrameworkOrSystemProperty(propName);
 if (propertyValue == null) {
  return matchByDefault;
 } else {
  return caseSensitive ? propertyValue.equals(matchValue) : propertyValue.equalsIgnoreCase(matchValue);
 }
}
origin: org.jboss.errai/errai-marshalling

public static boolean isForceStaticMarshallers() {
 if (System.getProperty(FORCE_STATIC_MARSHALLERS) != null) {
  return Boolean.getBoolean(FORCE_STATIC_MARSHALLERS);
 }
 final Map<String, String> frameworkProperties = EnvUtil.getEnvironmentConfig().getFrameworkProperties();
 if (frameworkProperties.containsKey(FORCE_STATIC_MARSHALLERS)) {
  return "true".equals(frameworkProperties.get(FORCE_STATIC_MARSHALLERS));
 }
 else {
  return false;
 }
}
origin: errai/errai

private static Map<String, String> getConfigMap() {
 return EnvUtil.getEnvironmentConfig().getFrameworkProperties();
}
origin: org.jboss.errai/errai-config

private static Map<String, String> getConfigMap() {
 return EnvUtil.getEnvironmentConfig().getFrameworkProperties();
}
origin: errai/errai

private boolean isAlternativeEnabled(final MetaClass type) {
 if (alternatives == null) {
  final String userDefinedAlternatives = EnvUtil.getEnvironmentConfig().getFrameworkOrSystemProperty("errai.ioc.enabled.alternatives");
  if (userDefinedAlternatives != null) {
   alternatives = new HashSet<>(Arrays.asList(userDefinedAlternatives.split("\\s+")));
  } else {
   alternatives = Collections.emptyList();
  }
 }
 return alternatives.contains(type.getFullyQualifiedName());
}
origin: org.jboss.errai/errai-config

private static boolean isUserPortableType(final MetaClass mc) {
 return mc.isAnnotationPresent(Portable.class) || getEnvironmentConfig().getExposedClasses().contains(mc)
   || getEnvironmentConfig().getPortableSuperTypes().contains(mc);
}
origin: errai/errai

private static boolean isUserPortableType(final MetaClass mc) {
 return mc.isAnnotationPresent(Portable.class) || getEnvironmentConfig().getExposedClasses().contains(mc)
   || getEnvironmentConfig().getPortableSuperTypes().contains(mc);
}
origin: errai/errai

public static boolean isUseStaticMarshallers() {
 if (isForceStaticMarshallers())
  return true;
 if (EnvUtil.isDevMode() && !EnvUtil.isJUnitTest())
  return false;
 if (System.getProperty(USE_STATIC_MARSHALLERS) != null) {
  return Boolean.getBoolean(USE_STATIC_MARSHALLERS);
 }
 final Map<String, String> frameworkProperties = EnvUtil.getEnvironmentConfig().getFrameworkProperties();
 if (frameworkProperties.containsKey(USE_STATIC_MARSHALLERS)) {
  return "true".equals(frameworkProperties.get(USE_STATIC_MARSHALLERS));
 }
 else {
  return !EnvUtil.isDevMode();
 }
}
origin: org.jboss.errai/errai-marshalling

public static boolean isUseStaticMarshallers() {
 if (isForceStaticMarshallers())
  return true;
 if (EnvUtil.isDevMode() && !EnvUtil.isJUnitTest())
  return false;
 if (System.getProperty(USE_STATIC_MARSHALLERS) != null) {
  return Boolean.getBoolean(USE_STATIC_MARSHALLERS);
 }
 final Map<String, String> frameworkProperties = EnvUtil.getEnvironmentConfig().getFrameworkProperties();
 if (frameworkProperties.containsKey(USE_STATIC_MARSHALLERS)) {
  return "true".equals(frameworkProperties.get(USE_STATIC_MARSHALLERS));
 }
 else {
  return !EnvUtil.isDevMode();
 }
}
origin: errai/errai

final EnvironmentConfig environmentConfig = getEnvironmentConfig();
final Set<MetaClass> envExposedClasses = environmentConfig.getExposedClasses();
origin: org.jboss.errai/errai-marshalling

final EnvironmentConfig environmentConfig = getEnvironmentConfig();
final Set<MetaClass> envExposedClasses = environmentConfig.getExposedClasses();
origin: errai/errai

final boolean asyncBootstrap;
final String s = EnvUtil.getEnvironmentConfig().getFrameworkOrSystemProperty("errai.ioc.async_bean_manager");
asyncBootstrap = s != null && Boolean.parseBoolean(s);
origin: errai/errai

final String s = EnvUtil.getEnvironmentConfig().getFrameworkOrSystemProperty("errai.ioc.async_bean_manager");
asyncBootstrap = s != null && Boolean.parseBoolean(s);
org.jboss.errai.config.rebindEnvUtilgetEnvironmentConfig

Popular methods of EnvUtil

  • isPortableType
  • isProdMode
  • isJUnitTest
  • getErraiAppPropertiesFilesUrls
  • isDevMode
  • isLocalEventType
  • recordEnvironmentState
  • addExposedInnerClasses
  • addMappingAliases
  • addNonSerializableTypes
  • addSerializableTypes
  • clearCache
  • addSerializableTypes,
  • clearCache,
  • fillInInterfacesAndSuperTypes,
  • getAllPortableConcreteSubtypes,
  • isBuiltinPortableType,
  • isListValuedProperty,
  • isString,
  • isUserPortableType,
  • processEnvironmentConfigExtensions

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • Permission (java.security)
    Legacy security code; do not use.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now