org.openrdf.sesame.server
Class SesameStartup

java.lang.Object
  extended byorg.openrdf.sesame.server.SesameStartup

public final class SesameStartup
extends Object

Title: Sample standalone Sesame Application Description: Demonstrates an standalone Sesame Application Company: Sirma AI, OntoText Lab/

Version:
1.0
Author:
Damyan Ognyanoff

Constructor Summary
SesameStartup()
           
 
Method Summary
static void initialize(String fileName)
          Initializes Sesame/OMM given a configuration file.
static void initialize(String configHandlerClass, Map configParams)
          Initializes Sesame and loads the configuration.
static void initialize(String fileName, String parser)
          Initializes Sesame/OMM given a configuration file and a parser class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SesameStartup

public SesameStartup()
Method Detail

initialize

public static void initialize(String configHandlerClass,
                              Map configParams)
                       throws Exception
Initializes Sesame and loads the configuration.

Note: special handling takes place when the Handler parses the configuration from an XML file: this requires that the System.property org.xml.sax.driver to be set. If the parser is not set it is assumed that this is the org.apache.xerces.parsers.SAXParser and is set accordingly.

Parameters:
configHandlerClass - The name of the configHandlerClass it must implement SystemConfigHandler interface.
configParams - A map containing the parameters required by the Handler.
Throws:
Exception

initialize

public static void initialize(String fileName)
                       throws Exception
Initializes Sesame/OMM given a configuration file.

Parameters:
fileName - the file name of the configuration
Throws:
Exception

initialize

public static void initialize(String fileName,
                              String parser)
                       throws Exception
Initializes Sesame/OMM given a configuration file and a parser class.

Parameters:
fileName - the configuration file name.
parser - XML parser class name to be used with the configuration file.
Throws:
Exception


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.