congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
EeRuntime
Code IndexAdd Tabnine 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)

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
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JFileChooser (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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