twitter4j.conf
Class PropertyConfigurationFactory

java.lang.Object
  extended by twitter4j.conf.PropertyConfigurationFactory
All Implemented Interfaces:
ConfigurationFactory

 class PropertyConfigurationFactory
extends java.lang.Object
implements ConfigurationFactory

ConfigurationFactory implementation for PropertyConfiguration. Currently getInstance calls concrete constructor each time. No caching at all.

Author:
Yusuke Yamamoto - yusuke at mac.com

Field Summary
private static PropertyConfiguration ROOT_CONFIGURATION
           
 
Constructor Summary
PropertyConfigurationFactory()
           
 
Method Summary
 void dispose()
          clean up resources acquired by this factory.
 Configuration getInstance()
          returns the root configuration
 Configuration getInstance(java.lang.String configTreePath)
          returns the configuration specified by the path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_CONFIGURATION

private static final PropertyConfiguration ROOT_CONFIGURATION
Constructor Detail

PropertyConfigurationFactory

PropertyConfigurationFactory()
Method Detail

getInstance

public Configuration getInstance()
returns the root configuration

Specified by:
getInstance in interface ConfigurationFactory
Returns:
root configuration

getInstance

public Configuration getInstance(java.lang.String configTreePath)
returns the configuration specified by the path

Specified by:
getInstance in interface ConfigurationFactory
Parameters:
configTreePath - the path
Returns:
the configuratoin

dispose

public void dispose()
clean up resources acquired by this factory.

Specified by:
dispose in interface ConfigurationFactory