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 String
ARGS
static String
BUNDLES
static String
DEVMODE
static String
FLUSH_CACHE
static String
HOST_NAME
static String
HOST_VERSION
static String
LIBS
static String
PREPROCESSING
static String
SCAN_FOR_NESTED_JARS
protected static String
STOP_MAX_WAIT_DEFAULT
Default maximum time to wait for effective stop (in seconds).protected static String
STOP_MAX_WAIT_PARAM
Copied fromNuxeoLauncher
.protected static Attributes.Name
SYMBOLIC_NAME
static String
TMP_DIR
Deprecated.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 Environment
createEnvironment(File home, Map<String,Object> hostEnv)
protected static String
getEnvProperty(String key, Map<String,Object> hostEnv, Properties sysprops, boolean addToSystemProperties)
static ClassLoader
getLoader()
protected static StringBuilder
getStartMessage()
static void
initialize(ClassLoader cl, File home, List<File> bundleFiles, Map<String,Object> hostEnv)
static String
install(File f)
protected static boolean
isBundle(File f)
protected static void
loadSystemProperties()
static OSGiAdapter
osgi()
static void
preprocess()
protected static void
printDeploymentOrderInfo(List<File> files)
protected static void
printStartMessage()
static void
start()
static void
stop()
static void
uninstall(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:
IOException
org.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
-
-