[ini4j]

org.ini4j
Class IniPreferencesFactoryListener

Object
  extended by IniPreferencesFactory
      extended by IniPreferencesFactoryListener
All Implemented Interfaces:
EventListener, PreferencesFactory, ServletContextListener

public class IniPreferencesFactoryListener
extends IniPreferencesFactory
implements ServletContextListener


Field Summary
static String DEFAULT_SYSTEM_LOCATION
           
static String DEFAULT_USER_LOCATION
           
 
Fields inherited from class IniPreferencesFactory
KEY_SYSTEM, KEY_USER, PROPERTIES
 
Constructor Summary
IniPreferencesFactoryListener()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent event)
           
 void contextInitialized(ServletContextEvent event)
           
protected  String getIniLocation(String key)
           
protected  URL getResource(String location)
           
 
Methods inherited from class IniPreferencesFactory
getResourceAsStream, newIniPreferences, systemRoot, userRoot
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_USER_LOCATION

public static final String DEFAULT_USER_LOCATION
See Also:
Constant Field Values

DEFAULT_SYSTEM_LOCATION

public static final String DEFAULT_SYSTEM_LOCATION
See Also:
Constant Field Values
Constructor Detail

IniPreferencesFactoryListener

public IniPreferencesFactoryListener()
Method Detail

contextDestroyed

public void contextDestroyed(ServletContextEvent event)
Specified by:
contextDestroyed in interface ServletContextListener

contextInitialized

public void contextInitialized(ServletContextEvent event)
Specified by:
contextInitialized in interface ServletContextListener

getIniLocation

protected String getIniLocation(String key)
Overrides:
getIniLocation in class IniPreferencesFactory

getResource

protected URL getResource(String location)
                   throws IllegalArgumentException
Overrides:
getResource in class IniPreferencesFactory
Throws:
IllegalArgumentException

[ini4j]