at.ac.tuwien.infosys.sm4all.copal.api.conf
Class BaseConfiguration<T>

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.osgi.GenericActivator
      extended by at.ac.tuwien.infosys.sm4all.copal.api.conf.BaseConfiguration<T>
Type Parameters:
T - type of defined Objects.
All Implemented Interfaces:
Configuration<T>, DependencyTrackerCustomizer, org.osgi.framework.BundleActivator
Direct Known Subclasses:
EventTypesConfiguration, QueriesConfiguration

public abstract class BaseConfiguration<T>
extends GenericActivator
implements Configuration<T>

Configuration helper class that finds the XML configuration in classpath.

Author:
sanjin

Constructor Summary
protected BaseConfiguration(java.lang.ClassLoader classLoader, java.lang.String fileName, java.lang.String... dependencies)
          Create instance of base configuration that uses specified ClassLoader to find the XML configuration file with specified name and depends on specified OSGi services.
 
Method Summary
protected  org.w3c.dom.Document getDocument()
          Returns the configuration Document.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.osgi.GenericActivator
addingService, getDependency, modifiedService, register, register, removedService, start, start, stop, stop, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface at.ac.tuwien.infosys.sm4all.copal.api.conf.Configuration
getDefined
 

Constructor Detail

BaseConfiguration

protected BaseConfiguration(java.lang.ClassLoader classLoader,
                            java.lang.String fileName,
                            java.lang.String... dependencies)
Create instance of base configuration that uses specified ClassLoader to find the XML configuration file with specified name and depends on specified OSGi services.

Parameters:
classLoader - the ClassLoader.
fileName - the name of the configuration file.
dependencies - the names of dependent services.
Method Detail

getDocument

protected final org.w3c.dom.Document getDocument()
Returns the configuration Document.

Returns:
the configuration Document.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.