Package org.infinispan.server.loader
Class Loader
java.lang.Object
org.infinispan.server.loader.Loader
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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringProperty name indicating the path to the server installation.static final StringProperty name indicating the paths to the server lib directories.static final StringProperty name indicating the path to the root of a server instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassLoaderclassLoaderFromPath(Path path, ClassLoader parent) static voidstatic voidrun(String[] args, Properties properties)
-
Field Details
-
INFINISPAN_SERVER_HOME_PATH
Property name indicating the path to the server installation. If unspecified, the current working directory will be used- See Also:
-
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:
-
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:
-
DEFAULT_SERVER_ROOT_DIR
- See Also:
-
-
Constructor Details
-
Loader
public Loader()
-
-
Method Details
-
main
-
run
-
classLoaderFromPath
-