| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.sape.carbon.services.config.classloader.ConfigurationSource
This class encapsulates the backing data store for classloader based nodes.
Copyright 2003 Sapient
| Field Summary | |
| private  ClassLoader | sourceLoader | 
| private  URL[] | sourceURLs | 
| Constructor Summary | |
| ConfigurationSource()Constructs the ConfigurationSource using this class' Classloader as the backing data store. | |
| ConfigurationSource(String[] sourceURLStrings)Constructs the ConfigurationSource using a list of strings and the URLClassloader as the backing store. | |
| ConfigurationSource(URL[] sourceURLs)Constructs the ConfigurationSource using a new URLClassloader as the backing data store. | |
| Method Summary | |
|  URL | getResource(String resourcePath)Gets the URL for the given resource or null if the resouce does not exists. | 
|  InputStream | getResourceAsStream(String resourcePath)Gets the InputStream for the given resource or null if the resouce does not exists. | 
|  void | refresh()If a new URLClassloader is being used as the backing data store, this method will dereference the current URLClassloader, allowing it to be garbage collected, and create a new one. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
private URL[] sourceURLs
private ClassLoader sourceLoader
| Constructor Detail | 
public ConfigurationSource()
public ConfigurationSource(URL[] sourceURLs)
sourceURLs - the URLs that are used to construct the URLClassloaderURLClassLoaderpublic ConfigurationSource(String[] sourceURLStrings)
sourceURLStrings - the URLs as Strings that are used to
        construct the URLClassloader.
InvalidParameterExecption - if there list of Strings is
         null or contains malformed urls.| Method Detail | 
public void refresh()
public InputStream getResourceAsStream(String resourcePath)
resourcePath - the resource to get
ClassLoader.getResourceAsStream(java.lang.String)public URL getResource(String resourcePath)
resourcePath - the resource to get
ClassLoader.getResource(java.lang.String)| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||