Codota Logo
EeRuntime
Code IndexAdd Codota to your IDE (free)

How to use
EeRuntime
in
com.kumuluz.ee.common.runtime

Best Java code snippets using com.kumuluz.ee.common.runtime.EeRuntime (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: kumuluz/kumuluzee

  @Produces
  @ApplicationScoped
  public EeRuntime getConfigurationUtil() {
    return EeRuntime.getInstance();
  }
}
origin: com.kumuluz.ee/kumuluzee-common

public static void initialize(EeRuntimeInternal runtimeInternal) {
  if (instance != null) {
    throw new IllegalStateException("The EeRuntime was already initialized.");
  }
  instance = new EeRuntime(runtimeInternal);
}
origin: kumuluz/kumuluzee

@Override
public void init(KumuluzServerWrapper server, EeConfig eeConfig) {
  PersistenceUnitHolder holder = PersistenceUnitHolder.getInstance();
  // Check if JTA is present in the runtime
  Boolean jtaPresent = EeRuntime.getInstance().getEeComponents().stream().anyMatch(c -> c.getType().equals(EeComponentType.JTA));
  holder.setProviderProperties(new EclipseLinkSettings(jtaPresent));
}
origin: com.kumuluz.ee.metrics/kumuluzee-metrics-core

private ServiceConfigInfo() {
  EeConfig eeConfig = EeConfig.getInstance();
  this.environment = eeConfig.getEnv().getName();
  if (this.environment == null || this.environment.isEmpty()) {
    this.environment = "dev";
  }
  this.serviceName = eeConfig.getName();
  if (this.serviceName == null || this.serviceName.isEmpty()) {
    this.serviceName = "UNKNOWN";
  }
  this.serviceVersion = eeConfig.getVersion();
  if (this.serviceVersion == null || this.serviceVersion.isEmpty()) {
    this.serviceVersion = "1.0.0";
  }
  this.instanceId = EeRuntime.getInstance().getInstanceId();
  this.addToTags = ConfigurationUtil.getInstance().getBoolean("kumuluzee.metrics.add-default-tags")
      .orElse(true);
}
origin: kumuluz/kumuluzee

EeRuntime.initialize(eeRuntimeInternal);
origin: kumuluz/kumuluzee

@Override
public void init(KumuluzServerWrapper server, EeConfig eeConfig) {
  LOG.info("Initiating CXF");
  // Check if CDI is present in the runtime
  Boolean cdiPresent = EeRuntime.getInstance().getEeComponents().stream().anyMatch(c -> c.getType().equals(EeComponentType.CDI));
  LOG.fine("CXF component will run with" + (cdiPresent ? "" : "out") + " CDI");
  final ServletServer kumuluzServer = (ServletServer) server.getServer();
  final String baseUrl = server.getServer().getServerConfig().getBaseUrl();
  final JaxWsAnnotationProcessorUtil wsInstance = JaxWsAnnotationProcessorUtil.getInstance();
  wsInstance.setContextRoot(baseUrl);
  final Map<String, String> servletParams = new HashMap<>();
  servletParams.put(KumuluzCXFServlet.CDI_INIT_PARAM, cdiPresent.toString());
  String contextRoot = wsInstance.getContextRoot();
  LOG.fine(KumuluzCXFServlet.class.getName() + " mapping set to " + contextRoot);
  kumuluzServer.registerServlet(KumuluzCXFServlet.class, contextRoot, servletParams);
}
origin: com.kumuluz.ee/kumuluzee-cdi-weld

  @Produces
  @ApplicationScoped
  public EeRuntime getConfigurationUtil() {
    return EeRuntime.getInstance();
  }
}
origin: kumuluz/kumuluzee

public static void initialize(EeRuntimeInternal runtimeInternal) {
  if (instance != null) {
    throw new IllegalStateException("The EeRuntime was already initialized.");
  }
  instance = new EeRuntime(runtimeInternal);
}
com.kumuluz.ee.common.runtimeEeRuntime

Most used methods

  • getInstance
  • getEeComponents
  • <init>
  • getInstanceId
  • initialize

Popular in Java

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • JTextField (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now