Tabnine Logo
Config
Code IndexAdd Tabnine to your IDE (free)

How to use
Config
in
com.nuodb.migrator.config

Best Java code snippets using com.nuodb.migrator.config.Config (Showing top 5 results out of 315)

origin: nuodb/migration-tools

  public static String getProperty(String property, String defaultValue) {
    return CONFIG.getProperty(property, defaultValue);
  }
}
origin: nuodb/migration-tools

public void boot(String[] arguments) throws Exception {
  config = Config.getInstance();
  Properties properties = config.getProperties();
  if (logger.isDebugEnabled()) {
    logger.debug(format("Exposing bootstrap config as system properties %s", properties));
  }
  for (Map.Entry<Object, Object> entry : properties.entrySet()) {
    setProperty((String) entry.getKey(), (String) entry.getValue());
  }
  classLoader = createClassLoader();
  Thread.currentThread().setContextClassLoader(classLoader);
  Bootable bootable = createBootable();
  bootable.boot(arguments);
}
origin: nuodb/migration-tools

public static String getProperty(String property) {
  return CONFIG.getProperty(property);
}
origin: nuodb/migration-tools

protected ClassLoader createClassLoader() throws IOException {
  if (logger.isDebugEnabled()) {
    logger.debug("Creating class loader");
  }
  String classPath = getConfig().getProperty(CLASSPATH);
  if (classPath == null || classPath.equals("")) {
    return getClass().getClassLoader();
  }
  return createClassPathLoader(classPath, currentThread().getContextClassLoader());
}
origin: nuodb/migration-tools

protected Bootable createBootable() throws Exception {
  String bootableName = getConfig().getProperty(BOOTABLE_CLASS, DEFAULT_BOOTABLE_CLASS);
  if (logger.isDebugEnabled()) {
    logger.debug(format("Booting %s", bootableName));
  }
  Class<? extends Bootable> bootableType = (Class<? extends Bootable>) getClassLoader().loadClass(bootableName);
  Constructor<? extends Bootable> constructor = bootableType.getConstructor();
  return constructor.newInstance();
}
com.nuodb.migrator.configConfig

Most used methods

  • getProperty
  • getInstance
  • getProperties

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Join (org.hibernate.mapping)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Best IntelliJ plugins
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