Package net.sf.xbus.base.core.config

Examples of net.sf.xbus.base.core.config.Configuration


  }

  private static boolean getEnabled(XBUSSystem system) throws XException
  {
    Configuration config = Configuration.getInstance();
    return config.getValueAsBooleanOptional(Constants.CHAPTER_BASE,
        SECTION, "Enabled")
        || config.getValueAsBooleanOptional(Constants.CHAPTER_SYSTEM,
            system.getName(), "UseDeletedMessageStore");
  }
View Full Code Here


  } // getDocumentBuilder()

  private static boolean getIgnoringComments(String messageName, String system)
      throws XException
  {
    Configuration standConf = Configuration.getInstance();
    Configuration xbusConf = Configuration.getInstance("xbus");

    boolean setIgnoringComments = xbusConf.getValueAsBoolean(
        "ParserSettings", messageName, "IgnoringComments");
    if (system != null)
    {
      setIgnoringComments = setIgnoringComments
          || standConf.getValueAsBooleanOptional(
View Full Code Here

  }

  private static boolean getIgnoringElementContentWhitespace(
      String messageName, String system) throws XException
  {
    Configuration standConf = Configuration.getInstance();
    Configuration xbusConf = Configuration.getInstance("xbus");

    boolean setIgnoringElementContentWhitespace = xbusConf
        .getValueAsBoolean("ParserSettings", messageName,
            "IgnoringElementContentWhitespace");
    if (system != null)
    {
      setIgnoringElementContentWhitespace = setIgnoringElementContentWhitespace
View Full Code Here

  }

  private static boolean getValidating(String messageName, String system)
      throws XException
  {
    Configuration standConf = Configuration.getInstance();
    Configuration xbusConf = Configuration.getInstance("xbus");

    boolean setValidating = xbusConf.getValueAsBoolean("ParserSettings",
        messageName, "XMLValidating");
    if (system != null)
    {
      setValidating = setValidating
          || standConf.getValueAsBooleanOptional(
View Full Code Here

  }

  private static String getXMLSchema(String messageName, String system)
      throws XException
  {
    Configuration standConf = Configuration.getInstance();
    Configuration xbusConf = Configuration.getInstance("xbus");

    String schema = null;

    if (system != null)
    {
      schema = standConf.getValueOptional(Constants.CHAPTER_SYSTEM,
          system, "XMLSchema");
    }
    if (schema == null)
    {
      schema = xbusConf.getValueOptional("ParserSettings", messageName,
          "XMLSchema");
    }
    return schema;
  }
View Full Code Here

  }

  private static boolean getNamespaceAware(String messageName, String system)
      throws XException
  {
    Configuration standConf = Configuration.getInstance();
    Configuration xbusConf = Configuration.getInstance("xbus");

    boolean setNamespaceAware = xbusConf.getValueAsBoolean(
        "ParserSettings", messageName, "NamespaceAware");
    if (system != null)
    {
      setNamespaceAware = setNamespaceAware
          || standConf.getValueAsBooleanOptional(
View Full Code Here

  }

  private String getClassName(XBUSSystem source, XBUSSystem destination,
      Message destinationMessage) throws XException
  {
    Configuration config = Configuration.getInstance();
    String retString = config.getValueOptional("Transformer", getSection(source, destination,
        destinationMessage), "Class");
    if (retString == null)
    {
      retString = config.getValue("Transformer", getSectionWithFunction(source, destination,
        destinationMessage), "Class");
    }
    return retString;
  }
View Full Code Here

  }

  private String getMethodName(XBUSSystem source, XBUSSystem destination,
      Message destinationMessage) throws XException
  {
    Configuration config = Configuration.getInstance();
    String retString = config.getValueOptional("Transformer", getSection(source, destination,
        destinationMessage), "Method");
    if (retString == null)
    {     
      retString =  config.getValue("Transformer", getSectionWithFunction(source, destination,
        destinationMessage), "Method");
    }
    return retString;
  }
View Full Code Here

  public XBUSSystem(String name) throws XException
  {
    mName = name;

    // Look for the (optional) restrictions to data source age.
    Configuration config = Configuration.getInstance();
    mMinAge = config.getValueAsIntOptional(Constants.CHAPTER_SYSTEM, name,
        "MinAge") * 1000;
    mMaxAge = config.getValueAsIntOptional(Constants.CHAPTER_SYSTEM, name,
        "MaxAge") * 1000;
  } // XBUSSystem(String name)
View Full Code Here

      /*
       * If there is no address implementation for the current system
       * created yet, we will create it and put it in the Hashtable.
       */

      Configuration config = Configuration.getInstance();
      /*
       * If an implementation for the address is provided with the system,
       * than this implementation is getting used.
       */

      String addressImplementationNameShort = config.getValueOptional(
          Constants.CHAPTER_SYSTEM, systemName, ADDITIONAL_ADDRESS);

      if (addressImplementationNameShort == null)
      {
        /*
         * If there is no system specific implementation, there maybe is
         * a global entry.
         */
        addressImplementationNameShort = config.getValueOptional(
            "Base", Constants.CHAPTER_SYSTEM, ADDITIONAL_ADDRESS);

      }

      if (addressImplementationNameShort != null)
View Full Code Here

TOP

Related Classes of net.sf.xbus.base.core.config.Configuration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.