Package org.infinispan.server.loader
Class Loader
- java.lang.Object
-
- org.infinispan.server.loader.Loader
-
public class Loader extends Object
Generic loader which constructs a classloader from all the jars found in some known locations and invokes the main method on a specified class. This allows us to avoid the construction of huge classpaths in the shell scripts that launch the server.- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SERVER_ROOT_DIRstatic StringINFINISPAN_SERVER_HOME_PATHProperty name indicating the path to the server installation.static StringINFINISPAN_SERVER_LIB_PATHProperty name indicating the paths to the server lib directories.static StringINFINISPAN_SERVER_ROOT_PATHProperty name indicating the path to the root of a server instance.
-
Constructor Summary
Constructors Constructor Description Loader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassLoaderclassLoaderFromPath(Path path, ClassLoader parent)static voidmain(String[] args)static voidrun(String[] args, Properties properties)
-
-
-
Field Detail
-
INFINISPAN_SERVER_HOME_PATH
public static final String INFINISPAN_SERVER_HOME_PATH
Property name indicating the path to the server installation. If unspecified, the current working directory will be used- See Also:
- Constant Field Values
-
INFINISPAN_SERVER_ROOT_PATH
public static final String INFINISPAN_SERVER_ROOT_PATH
Property name indicating the path to the root of a server instance. If unspecified, defaults to the server directory under the server home.- See Also:
- Constant Field Values
-
INFINISPAN_SERVER_LIB_PATH
public static final String INFINISPAN_SERVER_LIB_PATH
Property name indicating the paths to the server lib directories. If unspecified, defaults to the lib directory under the server root.- See Also:
- Constant Field Values
-
DEFAULT_SERVER_ROOT_DIR
public static final String DEFAULT_SERVER_ROOT_DIR
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(String[] args)
-
run
public static void run(String[] args, Properties properties)
-
classLoaderFromPath
public static ClassLoader classLoaderFromPath(Path path, ClassLoader parent)
-
-