net.sf.sail.core.bundle
Class BundleManager

java.lang.Object
  extended by net.sf.sail.core.bundle.BundleManager

public class BundleManager
extends java.lang.Object

Author:
scytacki AUDIT07-

Constructor Summary
BundleManager()
           
 
Method Summary
 void addBundles(java.util.Collection<Bundle> extraBundles)
           
 void addBundles(java.io.InputStream inStream)
          Reads in all of the objects are defined in the bundlesXML file
 java.lang.ClassLoader getClassLoader()
           
 ServiceContext getServiceContext()
           
 void initializeBundles()
          call registerServices on all of the bundles call initializeBundle on each bundle All the bundles must be registered first, and after that the bundles can be initialized Sets contextURL to the bundle as necessary
 void setClassLoader(java.lang.ClassLoader classLoader)
          This will set the classloader used by the xmldecoder to load in the bundles
 void setContextURL(java.net.URL contextURL)
          Sets the relative url context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleManager

public BundleManager()
Method Detail

setContextURL

public void setContextURL(java.net.URL contextURL)
Sets the relative url context

Parameters:
contextURL - url that the url is relative to

getServiceContext

public ServiceContext getServiceContext()
Returns:
serviceContext

addBundles

public void addBundles(java.io.InputStream inStream)
                throws java.io.IOException
Reads in all of the objects are defined in the bundlesXML file

Parameters:
inStream - inputStream of the bundlesXML
Throws:
java.io.IOException

addBundles

public void addBundles(java.util.Collection<Bundle> extraBundles)

initializeBundles

public void initializeBundles()
call registerServices on all of the bundles call initializeBundle on each bundle All the bundles must be registered first, and after that the bundles can be initialized Sets contextURL to the bundle as necessary


getClassLoader

public java.lang.ClassLoader getClassLoader()

setClassLoader

public void setClassLoader(java.lang.ClassLoader classLoader)
This will set the classloader used by the xmldecoder to load in the bundles

Parameters:
classLoader -


Copyright © 2004-2008 TELS Center. All Rights Reserved.