congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.jboss.gravia.runtime.spi
Code IndexAdd Tabnine to your IDE (free)

How to use org.jboss.gravia.runtime.spi

Best Java code snippets using org.jboss.gravia.runtime.spi (Showing top 20 results out of 315)

origin: org.jboss.gravia/gravia-runtime-api

private FilterImpl parse_not() {
  int lookahead = pos;
  skipWhiteSpace();
  if (filterChars[pos] != '(') {
    pos = lookahead - 1;
    return parse_item();
  }
  FilterImpl child = parse_filter();
  return new FilterImpl(FilterImpl.NOT, null, child);
}
origin: org.jboss.gravia/gravia-runtime-api

@Override
public URL getEntry(String path) {
  ModuleEntriesProvider entriesProvider = adapt(ModuleEntriesProvider.class);
  return entriesProvider != null ? entriesProvider.getEntry(path) : null;
}
origin: org.jboss.gravia/gravia-runtime-api

@Override
public Object getProperty(String key, Object defaultValue) {
  String envVar =  SecurityActions.getEnv(toEnvVariable(environmentVariablePrefix, key), null);
  return envVar != null ? envVar : defaultValue;
}
origin: org.jboss.gravia/gravia-runtime-api

public DefaultPropertiesProvider(Map<String, Object> properties, final boolean systemPropertyDelegation, final String environmentVariablePrefix) {
  IllegalArgumentAssertion.assertNotNull(properties, "props");
  properties.putAll(propsToMap(getDefaultProperties()));
  PropertiesProvider system = systemPropertyDelegation ? new SystemPropertiesProvider() : new MapPropertiesProvider();
  PropertiesProvider env =  environmentVariablePrefix != null ? new EnvPropertiesProvider(environmentVariablePrefix) : new EnvPropertiesProvider(system);
      this.delegate = new SubstitutionPropertiesProvider(
      new CompositePropertiesProvider(
          new MapPropertiesProvider(properties),
          system,
          env
      )
  );
}
origin: org.jboss.gravia/gravia-runtime-api

@Override
public List<String> getEntryPaths(String path) {
  ModuleEntriesProvider entriesProvider = adapt(ModuleEntriesProvider.class);
  return entriesProvider != null ? entriesProvider.getEntryPaths(path) : Collections.<String>emptyList();
}
origin: org.jboss.gravia/gravia-runtime-api

@Override
public List<URL> findEntries(String path, String filePattern, boolean recurse) {
  ModuleEntriesProvider entriesProvider = adapt(ModuleEntriesProvider.class);
  return entriesProvider != null ? entriesProvider.findEntries(path, filePattern, recurse) : Collections.<URL>emptyList();
}
origin: org.jboss.gravia/gravia-runtime-api

@Override
public Object getProperty(String key, Object defaultValue) {
  Object result = null;
  for (PropertiesProvider delegate : delegates) {
    result = delegate.getProperty(key);
    if (result != null) {
      return result;
    }
  }
  return defaultValue;
}
origin: org.jboss.gravia/gravia-runtime-api

@Override
public final Module installModule(ClassLoader classLoader, Dictionary<String, String> headers) throws ModuleException {
  assertNoShutdown();
  return installModule(classLoader, null, headers, null);
}
origin: org.jboss.gravia/gravia-runtime-api

private boolean compare_Collection(int operation, Collection<?> collection, Object value2) {
  for (Object value1 : collection) {
    if (compare(operation, value1, value2)) {
      return true;
    }
  }
  return false;
}
origin: org.jboss.gravia/gravia-runtime-api

  @Override
  public Object getProperty(String key, Object defaultValue) {
    String value = SecurityActions.getSystemProperty(key, null);
    return value != null ? value : defaultValue;
  }
}
origin: org.jboss.gravia/gravia-runtime-api

  @Override
  public String toString() {
    return "Module[" + getIdentity() + "]";
  }
}
origin: org.jboss.gravia/gravia-runtime-api

@Override
public Object getProperty(String key) {
  return getProperty(key, null);
}
origin: org.jboss.gravia/gravia-runtime-api

@Override
public Object getProperty(String key) {
  return getProperty(key, null);
}
origin: org.jboss.gravia/gravia-runtime-api

@Override
public Filter createFilter(String filter) {
  return FilterFactory.createFilter(filter);
}
origin: org.jboss.gravia/gravia-runtime-embedded

@Override
protected ModuleEntriesProvider getDefaultEntriesProvider(Module module, Attachable context) {
  return new ClassLoaderEntriesProvider(module);
}
origin: org.jboss.gravia/gravia-runtime-embedded

@Override
protected void uninstallModule(Module module) {
  super.uninstallModule(module);
}
origin: org.jboss.gravia/gravia-runtime-api

@Override
public Object getProperty(String key) {
  return delegate.getProperty(key, null);
}
origin: org.jboss.gravia/gravia-runtime-api

@Override
public final Module installModule(ClassLoader classLoader, Resource resource, Dictionary<String, String> headers) throws ModuleException {
  assertNoShutdown();
  return installModule(classLoader, resource, headers, null);
}
origin: org.jboss.gravia/gravia-runtime-api

private boolean compare_ObjectArray(int operation, Object[] array, Object value2) {
  for (Object value1 : array) {
    if (compare(operation, value1, value2)) {
      return true;
    }
  }
  return false;
}
origin: org.jboss.gravia/gravia-runtime-api

@Override
public Object getProperty(String key, Object defaultValue) {
  return delegate.getProperty(key, defaultValue);
}
org.jboss.gravia.runtime.spi

Most used classes

  • ManifestHeadersProvider
    Provides Moduel headers from a manifest
  • AbstractModule
    The abstract base implementaiton for all Modules.
  • AbstractRuntime
    The abstract base implementation for a Runtime
  • AbstractWiring
    An abstract implementation of Wiring.
  • ClassLoaderEntriesProvider
    A provider for module entries that delegates to the given module class loader
  • NamedResourceAssociation,
  • PropertiesProvider,
  • RuntimeEventsManager,
  • AbstractModuleContext,
  • AbstractPropertiesProvider,
  • AbstractRuntime$ShutdownThread,
  • CompositePropertiesProvider,
  • DefaultPropertiesProvider,
  • EnvPropertiesProvider,
  • FilterFactory$CaseInsensitiveMap,
  • FilterFactory$FilterImpl$Parser,
  • FilterFactory$FilterImpl,
  • FilterFactory$ServiceReferenceMap,
  • FilterFactory$SetAccessibleAction
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