com.tinkerpop.rexster.extension
Class ExtensionConfiguration

java.lang.Object
  extended by com.tinkerpop.rexster.extension.ExtensionConfiguration

public class ExtensionConfiguration
extends Object

Holds information that details the configuration of an extension.


Constructor Summary
ExtensionConfiguration(String namespace, String extensionName, org.apache.commons.configuration.HierarchicalConfiguration extensionConfiguration)
          Initializes a new ExtensionConfiguration object as taken from rexster.xml.
 
Method Summary
 org.apache.commons.configuration.HierarchicalConfiguration getConfiguration()
           
 String getExtensionName()
           
 String getNamespace()
           
 Map<String,String> tryGetMapFromConfiguration()
          Helper method that tries to read the configuration for the extension into a map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionConfiguration

public ExtensionConfiguration(String namespace,
                              String extensionName,
                              org.apache.commons.configuration.HierarchicalConfiguration extensionConfiguration)
Initializes a new ExtensionConfiguration object as taken from rexster.xml. This is the specific configuration for a particular extension in a specific graph.

Method Detail

getNamespace

public String getNamespace()

getExtensionName

public String getExtensionName()

getConfiguration

public org.apache.commons.configuration.HierarchicalConfiguration getConfiguration()

tryGetMapFromConfiguration

public Map<String,String> tryGetMapFromConfiguration()
Helper method that tries to read the configuration for the extension into a map. The configuration section must appear as follows for this method to work:

value value

Key values must be unique within the configuration.

Returns:
A map or null if the parse does not work.


Copyright © 2009-2012. All Rights Reserved.