com.geekologue.md4j.config
Class Configuration

java.lang.Object
  extended by com.geekologue.md4j.config.Configuration

public class Configuration
extends java.lang.Object

Author:
manos

Method Summary
static void configure()
           
static void configure(java.io.File configFile)
           
static void configure(java.io.InputStream is)
           
static void configure(java.lang.String resource)
           
static void configure(java.net.URL url)
           
static Configuration getInstance()
           
 java.lang.String getNamespace(java.lang.String packageName)
           
 java.lang.Object getProperty(java.lang.String key)
           
protected static java.io.InputStream getStream(java.lang.String resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Configuration getInstance()
                                 throws java.lang.Exception
Returns:
the unique instance of this class
Throws:
java.lang.Exception

configure

public static void configure()
                      throws java.lang.Exception
Throws:
java.lang.Exception

configure

public static void configure(java.lang.String resource)
                      throws java.lang.Exception
Parameters:
resource -
Throws:
java.lang.Exception

configure

public static void configure(java.net.URL url)
                      throws java.io.IOException,
                             java.lang.Exception
Parameters:
url -
Throws:
java.lang.Exception
java.io.IOException

configure

public static void configure(java.io.File configFile)
                      throws java.lang.Exception
Parameters:
configFile -
Throws:
java.lang.Exception

getStream

protected static java.io.InputStream getStream(java.lang.String resource)

configure

public static void configure(java.io.InputStream is)
                      throws java.lang.Exception
Parameters:
is -
Throws:
java.lang.Exception

getProperty

public java.lang.Object getProperty(java.lang.String key)
Parameters:
key -
Returns:
the property identified by the given key, if any

getNamespace

public java.lang.String getNamespace(java.lang.String packageName)
Parameters:
packageName -
Returns:
the namespace identified by the given package, if any


Copyright © 2003-2007 Manos Batsis. All Rights Reserved.