[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: classoverirding in jboss
patwary_shiva
do-not-reply at jboss.com
Wed Sep 10 17:32:29 EDT 2008
Peter,
The code is in serverImpl.java of jboss-system.jar initBootLibraries() method which is private.
/**
* Initialize the boot libraries.
*/
private RepositoryClassLoader initBootLibraries() throws Exception
{
// Build the list of URL for the spine to boot
List list = new ArrayList();
// Add the patch URL. If the url protocol is file, then
// add the contents of the directory it points to
URL patchURL = config.getPatchURL();
if (patchURL != null)
{
if (patchURL.getProtocol().equals("file"))
{
File dir = new File(patchURL.getFile());
if (dir.exists())
{
// Add the local file patch directory
list.add(dir.toURL());
// Add the contents of the directory too
File[] jars = dir.listFiles(new FileSuffixFilter(new String[] { ".jar", ".zip" }, true));
for (int j = 0; jars != null && j < jars.length; j++)
{
list.add(jars[j].getCanonicalFile().toURL());
}
}
}
else
{
list.add(patchURL);
}
}
this code needs to chnage to accept multiple files.I am not sure whether it is good idea to modify as it will be very hard to maintain .Do you have any suggestion!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175710#4175710
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175710
More information about the jboss-user
mailing list