class AdaptorLoader extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
AdaptorLoader.CallerResolver
A helper class to get the call context.
|
private static class |
AdaptorLoader.FileComparator
A helper class to compare java.io.File names, so that they can be sorted,
and the order becomes predictable and reproducible.
|
Modifier and Type | Field and Description |
---|---|
private static Attributes.Name |
ADAPTOR_ATTRIBUTE_NAME |
static String |
ADAPTOR_DIR_PROPERTY |
private static org.slf4j.Logger |
logger |
Constructor and Description |
---|
AdaptorLoader() |
Modifier and Type | Method and Description |
---|---|
private static ClassLoader |
getParentClassLoader()
This method tries to determine a suitable classloader to be used as
parent classloader for the URLClassloaders of the adaptors.
|
private static boolean |
isChild(ClassLoader l1,
ClassLoader l2)
Determines if loader l2 is a child of loader l1.
|
(package private) static Adaptor[] |
loadAdaptors(ImmutableTypedProperties properties,
OctopusEngine octopusEngine) |
private static Adaptor |
newAdaptor(ClassLoader loader,
String name,
ImmutableTypedProperties properties,
OctopusEngine octopusEngine) |
private static final Attributes.Name ADAPTOR_ATTRIBUTE_NAME
public static final String ADAPTOR_DIR_PROPERTY
private static final org.slf4j.Logger logger
private static boolean isChild(ClassLoader l1, ClassLoader l2)
l1
- l2
- private static ClassLoader getParentClassLoader()
private static Adaptor newAdaptor(ClassLoader loader, String name, ImmutableTypedProperties properties, OctopusEngine octopusEngine) throws OctopusException
OctopusException
static Adaptor[] loadAdaptors(ImmutableTypedProperties properties, OctopusEngine octopusEngine) throws OctopusException
OctopusException