Tabnine Logo
ServicesConfig.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.granite.config.flex.ServicesConfig
constructor

Best Java code snippets using org.granite.config.flex.ServicesConfig.<init> (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: org.graniteds/granite-client

public void load() {
  InputStream is = null;
  try {
    is = Thread.currentThread().getContextClassLoader().getResourceAsStream(graniteStdConfigPath);
    if (graniteConfigPath != null)
      is = Thread.currentThread().getContextClassLoader().getResourceAsStream(graniteConfigPath);
    graniteConfig = new GraniteConfig(graniteStdConfigPath, is, null, null);
    postLoad(graniteConfig);
    servicesConfig = new ServicesConfig(null, null, false);
  }
  catch (Exception e) {
    graniteConfig = null;
    servicesConfig = null;
    throw new RuntimeException("Cannot load configuration", e);
  }
  finally {
    if (is != null) try {
      is.close();
    }
    catch (IOException e) {
    }
  }
}
 
origin: org.graniteds/granite-server

ServicesConfig servicesConfig = new ServicesConfig(is, configuration, skipScan ? false : graniteConfig.getScan());
origin: org.graniteds/granite-server

protected void init(ServletContext servletContext, String configPath) throws IOException, SAXException {
  String path = configuration.getGraniteConfig();
  if (path == null)
    path = GRANITE_CONFIG_DEFAULT;
  InputStream is = servletContext.getResourceAsStream(path);
  if (is == null) {
    log.warn("Could not load custom granite-config.xml: %s (file does not exists)", path);
    path = null;
  }
  
  this.graniteConfig = new GraniteConfig(configPath, is, null, null);
  
  ServletGraniteConfig.loadConfig(servletContext, graniteConfig);
  
  path = configuration.getFlexServicesConfig();
  if (path == null)
    path = SERVICES_CONFIG_DEFAULT;
  is = servletContext.getResourceAsStream(path);
  if (is == null) {
    log.warn("Could not load custom services-config.xml: %s (file does not exists)", path);
    path = null;
  }
  
  this.servicesConfig = new ServicesConfig(is, null, false);
  
  ServletServicesConfig.loadConfig(servletContext, servicesConfig);
}
 
org.granite.config.flexServicesConfig<init>

Popular methods of ServicesConfig

  • findDestinationById
  • findChannelById
  • findFactoryById
  • addChannel
  • addFactory
  • addService
  • findServiceById
  • forElement
  • handleClass
  • loadConfig
  • scan
  • scanConfig
  • scan,
  • scanConfig,
  • findServiceByDestination,
  • findServicesByMessageType,
  • removeChannel,
  • removeFactory,
  • removeService

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • Path (java.nio.file)
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JComboBox (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top 25 Plugins for Webstorm
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