net.sf.mmapps.modules.config
Class URLApplicationConfigurationReader

java.lang.Object
  extended bynet.sf.mmapps.modules.config.URLApplicationConfigurationReader

public class URLApplicationConfigurationReader
extends java.lang.Object

Util class to read an mmbase application configuration from an url(or the classpath).

Author:
keesj

Constructor Summary
URLApplicationConfigurationReader()
           
 
Method Summary
static ApplicationConfiguration getConfiguration(java.net.URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLApplicationConfigurationReader

public URLApplicationConfigurationReader()
Method Detail

getConfiguration

public static ApplicationConfiguration getConfiguration(java.net.URL url)
                                                 throws java.lang.Exception
Parameters:
url - an url to the application configuration file (eg http://www.mmbase.org/applicaitons/config/applications/MyNews.xml)
Returns:
the application configration found at that url/ to load an application from the classpath use something like YourClass.class.getClassLoader().getResources("config/applications/" + name + ".xml"); to get an url to the application xml and feed it to the method
Throws:
java.lang.Exception


Copyright © 2003-2004 mmapps. All Rights Reserved.