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

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

Best Java code snippets using com.kumuluz.ee.common.runtime.EeRuntime.getInstance (Showing top 5 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.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: com.kumuluz.ee/kumuluzee-cdi-weld

  @Produces
  @ApplicationScoped
  public EeRuntime getConfigurationUtil() {
    return EeRuntime.getInstance();
  }
}
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: 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));
}
com.kumuluz.ee.common.runtimeEeRuntimegetInstance

Popular methods of EeRuntime

  • getEeComponents
  • <init>
  • getInstanceId
  • initialize

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JList (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