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

How to use
BaseBoot
in
org.jfree.base

Best Java code snippets using org.jfree.base.BaseBoot (Showing top 20 results out of 315)

origin: jfree/jcommon

/**
 * Returns the boot instance.
 *
 * @return The boot instance.
 */
public static synchronized AbstractBoot getInstance() {
  if (singleton == null) {
    singleton = new BaseBoot();
  }
  return singleton;
}
origin: jfree/jcommon

/**
 * Returns the global configuration for JFreeReport.
 * <p/>
 * In the current implementation, the configuration has no properties defined, but
 * references a parent configuration that: <ul> <li>copies across all the
 * <code>System</code> properties to use as report configuration properties (obviously
 * the majority of them will not apply to reports);</li> <li>itself references a parent
 * configuration that reads its properties from a file <code>jfreereport.properties</code>.
 * </ul>
 *
 * @return the global configuration.
 */
protected synchronized Configuration loadConfiguration() {
  return createDefaultHierarchicalConfiguration
    ("/org/jfree/base/jcommon.properties",
     "/jcommon.properties", true, BaseBoot.class);
}
origin: jfree/jcommon

/**
 * Sets the log target.
 *
 * @param logTarget  the new log target.
 */
public static void setLogTarget(final String logTarget)
{
  BaseBoot.getConfiguration().setConfigProperty (LOGTARGET, logTarget);
}
origin: org.jfree/jcommon

/**
 * Returns the global configuration as modifiable configuration reference.
 *
 * @return the global configuration
 */
public static ModifiableConfiguration getConfiguration() {
  return (ModifiableConfiguration) getInstance().getGlobalConfig();
}
origin: jfree/jcommon

/**
 * Performs the boot process.
 */
protected void performBoot() {
  // configure the classloader from the properties-file.
  ObjectUtilities.setClassLoaderSource
      (getConfiguration().getConfigProperty("org.jfree.ClassLoader"));
  getPackageManager().addModule(DefaultLogModule.class.getName());
  getPackageManager().load("org.jfree.jcommon.modules.");
  getPackageManager().initializeModules();
}
origin: jfree/jcommon

/**
 * Returns the global configuration as modifiable configuration reference.
 *
 * @return the global configuration
 */
public static ModifiableConfiguration getConfiguration() {
  return (ModifiableConfiguration) getInstance().getGlobalConfig();
}
origin: org.jfree/jcommon

/**
 * Performs the boot process.
 */
protected void performBoot() {
  // configure the classloader from the properties-file.
  ObjectUtilities.setClassLoaderSource
      (getConfiguration().getConfigProperty("org.jfree.ClassLoader"));
  getPackageManager().addModule(DefaultLogModule.class.getName());
  getPackageManager().load("org.jfree.jcommon.modules.");
  getPackageManager().initializeModules();
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns the global configuration as modifiable configuration reference.
 *
 * @return the global configuration
 */
public static ModifiableConfiguration getConfiguration() {
  return (ModifiableConfiguration) getInstance().getGlobalConfig();
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Performs the boot process.
 */
protected void performBoot() {
  // configure the classloader from the properties-file.
  ObjectUtilities.setClassLoaderSource
      (getConfiguration().getConfigProperty("org.jfree.ClassLoader"));
  getPackageManager().addModule(DefaultLogModule.class.getName());
  getPackageManager().load("org.jfree.jcommon.modules.");
  getPackageManager().initializeModules();
}
origin: org.jfree/jcommon

/**
 * Sets the log target.
 *
 * @param logTarget  the new log target.
 */
public static void setLogTarget(final String logTarget)
{
  BaseBoot.getConfiguration().setConfigProperty (LOGTARGET, logTarget);
}
origin: org.jfree/jcommon

/**
 * Returns the boot instance.
 *
 * @return The boot instance.
 */
public static synchronized AbstractBoot getInstance() {
  if (singleton == null) {
    singleton = new BaseBoot();
  }
  return singleton;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns the global configuration for JFreeReport.
 * <p/>
 * In the current implementation, the configuration has no properties defined, but
 * references a parent configuration that: <ul> <li>copies across all the
 * <code>System</code> properties to use as report configuration properties (obviously
 * the majority of them will not apply to reports);</li> <li>itself references a parent
 * configuration that reads its properties from a file <code>jfreereport.properties</code>.
 * </ul>
 *
 * @return the global configuration.
 */
protected synchronized Configuration loadConfiguration() {
  return createDefaultHierarchicalConfiguration
    ("/org/jfree/base/jcommon.properties",
     "/jcommon.properties", true, BaseBoot.class);
}
origin: jfree/jcommon

/**
 * Returns <code>true</code> if logging is disabled, and <code>false</code> otherwise.
 *
 * @return true, if logging is completly disabled, false otherwise.
 */
public static boolean isDisableLogging()
{
 return BaseBoot.getInstance().getGlobalConfig().getConfigProperty
   (DISABLE_LOGGING, DISABLE_LOGGING_DEFAULT).equalsIgnoreCase("true");
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Sets the log target.
 *
 * @param logTarget  the new log target.
 */
public static void setLogTarget(final String logTarget)
{
  BaseBoot.getConfiguration().setConfigProperty (LOGTARGET, logTarget);
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns the boot instance.
 *
 * @return The boot instance.
 */
public static synchronized AbstractBoot getInstance() {
  if (singleton == null) {
    singleton = new BaseBoot();
  }
  return singleton;
}
origin: org.jfree/jcommon

/**
 * Returns the global configuration for JFreeReport.
 * <p>
 * In the current implementation, the configuration has no properties defined, but
 * references a parent configuration that:</p> 
 * <ul> <li>copies across all the
 * <code>System</code> properties to use as report configuration properties (obviously
 * the majority of them will not apply to reports);</li> <li>itself references a parent
 * configuration that reads its properties from a file <code>jfreereport.properties</code>.
 * </ul>
 *
 * @return the global configuration.
 */
protected synchronized Configuration loadConfiguration() {
  return createDefaultHierarchicalConfiguration
    ("/org/jfree/base/jcommon.properties",
     "/jcommon.properties", true, BaseBoot.class);
}
origin: org.jfree/jcommon

/**
 * Returns <code>true</code> if logging is disabled, and <code>false</code> otherwise.
 *
 * @return true, if logging is completly disabled, false otherwise.
 */
public static boolean isDisableLogging()
{
 return BaseBoot.getInstance().getGlobalConfig().getConfigProperty
   (DISABLE_LOGGING, DISABLE_LOGGING_DEFAULT).equalsIgnoreCase("true");
}
origin: jfree/jcommon

/**
 * Sets the flag that disables logging.
 * <p>
 * To switch off logging globally, you can use the following code:
 * <p>
 * <code>ReportConfiguration.getGlobalConfig().setDisableLogging(true);</code>
 *
 * @param disableLogging  the flag.
 */
public static void setDisableLogging(final boolean disableLogging)
{
 BaseBoot.getConfiguration().setConfigProperty
     (DISABLE_LOGGING, String.valueOf(disableLogging));
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns <code>true</code> if logging is disabled, and <code>false</code> otherwise.
 *
 * @return true, if logging is completly disabled, false otherwise.
 */
public static boolean isDisableLogging()
{
 return BaseBoot.getInstance().getGlobalConfig().getConfigProperty
   (DISABLE_LOGGING, DISABLE_LOGGING_DEFAULT).equalsIgnoreCase("true");
}
origin: org.jfree/jcommon

/**
 * Sets the flag that disables logging.
 * <p>
 * To switch off logging globally, you can use the following code:
 * <p>
 * <code>ReportConfiguration.getGlobalConfig().setDisableLogging(true);</code>
 *
 * @param disableLogging  the flag.
 */
public static void setDisableLogging(final boolean disableLogging)
{
 BaseBoot.getConfiguration().setConfigProperty
     (DISABLE_LOGGING, String.valueOf(disableLogging));
}
org.jfree.baseBaseBoot

Javadoc

The base boot class. This initializes the services provided by JCommon.

Most used methods

  • <init>
    Default constructor (private).
  • createDefaultHierarchicalConfiguration
  • getConfiguration
    Returns the global configuration as modifiable configuration reference.
  • getInstance
    Returns the boot instance.
  • getPackageManager

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Notification (javax.management)
  • Top plugins for Android Studio
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