Class OSGILauncher
- java.lang.Object
-
- org.eclipse.birt.core.framework.PlatformLauncher
-
- org.eclipse.birt.core.framework.osgi.OSGILauncher
-
public class OSGILauncher extends PlatformLauncher
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classOSGILauncher.ChildFirstURLClassLoaderThe ChildFirstURLClassLoader alters regular ClassLoader delegation and will check the URLs used in its initialization for matching classes before delegating to it's parent.
-
Constructor Summary
Constructors Constructor Description OSGILauncher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intfindMax(java.lang.String[] candidates)java.lang.ClassLoadergetFrameworkContextClassLoader()static booleanisValidPlatform(PlatformFileContext context)protected java.lang.StringsearchFor(java.lang.String target, java.lang.String start)Searches for the given target directory starting in the "plugins" subdirectory of the given location.protected voidsetupSecurityPolicy()voidshutdown()voidstartup(PlatformConfig config)
-
-
-
Method Detail
-
startup
public void startup(PlatformConfig config) throws FrameworkException
- Specified by:
startupin classPlatformLauncher- Throws:
FrameworkException
-
getFrameworkContextClassLoader
public java.lang.ClassLoader getFrameworkContextClassLoader()
-
shutdown
public void shutdown()
- Specified by:
shutdownin classPlatformLauncher
-
searchFor
protected java.lang.String searchFor(java.lang.String target, java.lang.String start)Searches for the given target directory starting in the "plugins" subdirectory of the given location. If one is found then this location is returned; otherwise an exception is thrown.- Parameters:
target-start- the location to begin searching- Returns:
- the location where target directory was found
-
findMax
protected int findMax(java.lang.String[] candidates)
-
setupSecurityPolicy
protected void setupSecurityPolicy() throws FrameworkException- Throws:
FrameworkException
-
isValidPlatform
public static boolean isValidPlatform(PlatformFileContext context)
-
-