public class ReflectiveEntityDriverFactory
extends java.lang.Object
addRule(String, DriverInferenceRule)
or
addClassFullNameMapping(String, String)
.
Reflectively instantiates and returns the driver, based on the location passed in,
in build(DriverDependentEntity, Location)
.
Modifier and Type | Class and Description |
---|---|
static class |
ReflectiveEntityDriverFactory.AbstractDriverInferenceRenamingInferenceRule |
static class |
ReflectiveEntityDriverFactory.AbstractDriverInferenceRule |
static class |
ReflectiveEntityDriverFactory.DriverInferenceByRenamingClassFullName |
static class |
ReflectiveEntityDriverFactory.DriverInferenceByRenamingClassSimpleName |
static class |
ReflectiveEntityDriverFactory.DriverInferenceForPaasLocation |
static class |
ReflectiveEntityDriverFactory.DriverInferenceForSshLocation |
static class |
ReflectiveEntityDriverFactory.DriverInferenceForWinRmLocation |
static interface |
ReflectiveEntityDriverFactory.DriverInferenceRule |
Constructor and Description |
---|
ReflectiveEntityDriverFactory() |
Modifier and Type | Method and Description |
---|---|
ReflectiveEntityDriverFactory.DriverInferenceRule |
addClassFullNameMapping(java.lang.String expectedClassFullName,
java.lang.String newClassFullName) |
ReflectiveEntityDriverFactory.DriverInferenceRule |
addClassSimpleNameMapping(java.lang.String expectedClassSimpleName,
java.lang.String newClassSimpleName) |
ReflectiveEntityDriverFactory.DriverInferenceRule |
addRule(java.lang.String identifier,
ReflectiveEntityDriverFactory.DriverInferenceRule rule)
adds a rule; possibly replacing an old one if one exists with the given identifier.
|
<D extends EntityDriver> |
build(DriverDependentEntity<D> entity,
Location location) |
public ReflectiveEntityDriverFactory.DriverInferenceRule addRule(java.lang.String identifier, ReflectiveEntityDriverFactory.DriverInferenceRule rule)
public ReflectiveEntityDriverFactory.DriverInferenceRule addClassFullNameMapping(java.lang.String expectedClassFullName, java.lang.String newClassFullName)
public ReflectiveEntityDriverFactory.DriverInferenceRule addClassSimpleNameMapping(java.lang.String expectedClassSimpleName, java.lang.String newClassSimpleName)
public <D extends EntityDriver> D build(DriverDependentEntity<D> entity, Location location)