Codota Logo
com.kumuluz.ee.common.runtime
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: com.kumuluz.ee/kumuluzee-common

  public List<EeRuntimeExtension> getEeExtensions() {
    return internalRuntime.getEeExtensions();
  }
}
origin: kumuluz/kumuluzee

public String getVersion() {
  return internalRuntime.getVersion();
}
origin: com.kumuluz.ee/kumuluzee-common

public List<EeRuntimeComponent> getEeComponents() {
  return internalRuntime.getEeComponents();
}
origin: kumuluz/kumuluzee

EeRuntimeInternal eeRuntimeInternal = new EeRuntimeInternal();
    .map(e -> new EeRuntimeComponent(e.getType(), e.getName()))
    .collect(Collectors.toList());
    .map(c -> new EeRuntimeComponent(c, server.getName()))
    .collect(Collectors.toList());
eeRuntimeInternal.setEeComponents(serverEeRuntimeComponents);
    .map(e -> new EeRuntimeExtension(e.getGroup(), e.getName())).collect(Collectors.toList());
    .map(e -> new EeRuntimeExtension(e.getGroup(), e.getName())).collect(Collectors.toList()));
    .map(e -> new EeRuntimeExtension(e.getGroup(), e.getName())).collect(Collectors.toList()));
eeRuntimeInternal.setEeExtensions(eeRuntimeExtensions);
EeRuntime.initialize(eeRuntimeInternal);
    Boolean jtaPresent = eeRuntimeInternal.getEeComponents().stream().anyMatch(c -> c.getType().equals(EeComponentType.JTA));
    filterParams.put("name", "KumuluzEE/" + eeRuntimeInternal.getVersion());
    servletServer.registerFilter(PoweredByFilter.class, "/*", filterParams);
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

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

public String getInstanceId() {
  return internalRuntime.getInstanceId();
}
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) {
  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: com.kumuluz.ee/kumuluzee-common

public String getVersion() {
  return internalRuntime.getVersion();
}
origin: kumuluz/kumuluzee

public List<EeRuntimeComponent> getEeComponents() {
  return internalRuntime.getEeComponents();
}
origin: kumuluz/kumuluzee

  public List<EeRuntimeExtension> getEeExtensions() {
    return internalRuntime.getEeExtensions();
  }
}
origin: com.kumuluz.ee/kumuluzee-common

public String getInstanceId() {
  return internalRuntime.getInstanceId();
}
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.runtime

Most used classes

  • EeRuntime
  • EeRuntimeComponent
  • EeRuntimeInternal
  • EeRuntimeExtension
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