Class FrameworkLoader
- java.lang.Object
-
- org.nuxeo.osgi.application.loader.FrameworkLoader
-
public class FrameworkLoader extends Object
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description static StringARGSstatic StringBUNDLESstatic StringDEVMODEstatic StringFLUSH_CACHEstatic StringHOST_NAMEstatic StringHOST_VERSIONstatic StringLIBSstatic StringPREPROCESSINGstatic StringSCAN_FOR_NESTED_JARSprotected static StringSTOP_MAX_WAIT_DEFAULTDefault maximum time to wait for effective stop (in seconds).protected static StringSTOP_MAX_WAIT_PARAMCopied fromNuxeoLauncher.protected static Attributes.NameSYMBOLIC_NAMEstatic StringTMP_DIRDeprecated.since 5.4.2 prefer use ofEnvironment.NUXEO_TMP_DIR
-
Constructor Summary
Constructors Constructor Description FrameworkLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static EnvironmentcreateEnvironment(File home, Map<String,Object> hostEnv)protected static StringgetEnvProperty(String key, Map<String,Object> hostEnv, Properties sysprops, boolean addToSystemProperties)static ClassLoadergetLoader()protected static StringBuildergetStartMessage()static voidinitialize(ClassLoader cl, File home, List<File> bundleFiles, Map<String,Object> hostEnv)static Stringinstall(File f)protected static booleanisBundle(File f)protected static voidloadSystemProperties()static OSGiAdapterosgi()static voidpreprocess()protected static voidprintDeploymentOrderInfo(List<File> files)protected static voidprintStartMessage()static voidstart()static voidstop()static voiduninstall(String symbolicName)
-
-
-
Field Detail
-
HOST_NAME
public static final String HOST_NAME
- See Also:
- Constant Field Values
-
HOST_VERSION
public static final String HOST_VERSION
- See Also:
- Constant Field Values
-
TMP_DIR
@Deprecated public static final String TMP_DIR
Deprecated.since 5.4.2 prefer use ofEnvironment.NUXEO_TMP_DIR- See Also:
- Constant Field Values
-
LIBS
public static final String LIBS
- See Also:
- Constant Field Values
-
BUNDLES
public static final String BUNDLES
- See Also:
- Constant Field Values
-
DEVMODE
public static final String DEVMODE
- See Also:
- Constant Field Values
-
PREPROCESSING
public static final String PREPROCESSING
- See Also:
- Constant Field Values
-
SCAN_FOR_NESTED_JARS
public static final String SCAN_FOR_NESTED_JARS
- See Also:
- Constant Field Values
-
FLUSH_CACHE
public static final String FLUSH_CACHE
- See Also:
- Constant Field Values
-
ARGS
public static final String ARGS
- See Also:
- Constant Field Values
-
STOP_MAX_WAIT_PARAM
protected static final String STOP_MAX_WAIT_PARAM
Copied fromNuxeoLauncher.- Since:
- 2023.0
- See Also:
- Constant Field Values
-
STOP_MAX_WAIT_DEFAULT
protected static final String STOP_MAX_WAIT_DEFAULT
Default maximum time to wait for effective stop (in seconds).Copied from
NuxeoLauncher.- Since:
- 2023.0
- See Also:
- Constant Field Values
-
SYMBOLIC_NAME
protected static Attributes.Name SYMBOLIC_NAME
-
-
Method Detail
-
osgi
public static OSGiAdapter osgi()
-
getLoader
public static ClassLoader getLoader()
-
initialize
public static void initialize(ClassLoader cl, File home, List<File> bundleFiles, Map<String,Object> hostEnv)
-
start
public static void start() throws org.osgi.framework.BundleException- Throws:
org.osgi.framework.BundleException
-
stop
public static void stop() throws org.osgi.framework.BundleException- Throws:
org.osgi.framework.BundleException
-
isBundle
protected static boolean isBundle(File f)
-
uninstall
public static void uninstall(String symbolicName) throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
-
install
public static String install(File f) throws IOException, org.osgi.framework.BundleException
- Throws:
IOExceptionorg.osgi.framework.BundleException
-
preprocess
public static void preprocess()
-
loadSystemProperties
protected static void loadSystemProperties()
-
getEnvProperty
protected static String getEnvProperty(String key, Map<String,Object> hostEnv, Properties sysprops, boolean addToSystemProperties)
-
createEnvironment
protected static Environment createEnvironment(File home, Map<String,Object> hostEnv)
-
printStartMessage
protected static void printStartMessage()
-
getStartMessage
protected static StringBuilder getStartMessage()
- Returns:
- Environment summary
- Since:
- 5.5
-
-