Package org.wso2.carbon.bootstrap
Class Bootstrap
java.lang.Object
org.wso2.carbon.bootstrap.Bootstrap
- Direct Known Subclasses:
CheckinClientBootstrap
The bootstrap class used for bootstrapping a Carbon server in standalone mode.
Added this mainly to support child-first classloading for webapps
See http://frank.zinepal.com/embedded-tomcat-class-loading-trickery
See http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected final voidaddFileUrl(File file) Add a given file or directory to the list of URLs.protected final voidaddJarFileUrls(File root) Add JAR files found in the given directory to the list of URLs.protected Stringprotected Stringprotected final voidstatic void
-
Field Details
-
ROOT
-
-
Constructor Details
-
Bootstrap
public Bootstrap()
-
-
Method Details
-
main
-
loadClass
-
addClassPathEntries
- Throws:
MalformedURLException
-
addFileUrl
Add a given file or directory to the list of URLs.- Parameters:
file- the directory to recursively search for JAR files.- Throws:
MalformedURLException- If a provided JAR file URL is malformed
-
addJarFileUrls
Add JAR files found in the given directory to the list of URLs.- Parameters:
root- the directory to recursively search for JAR files.- Throws:
MalformedURLException- If a provided JAR file URL is malformed
-
getClassToLoad
-
getMethodToInvoke
-