Package io.fluentlenium.configuration
Class MethodInvocationReflectionFactory
java.lang.Object
io.fluentlenium.configuration.MethodInvocationReflectionFactory
- All Implemented Interfaces:
CapabilitiesFactory
,Factory
,FactoryNames
- Direct Known Subclasses:
CapabilitiesRegistryImpl.DesiredCapabilitiesFactory
public class MethodInvocationReflectionFactory
extends Object
implements CapabilitiesFactory, FactoryNames
CapabilitiesFactory
based on invocation of a defined method.
-
Constructor Summary
ConstructorsConstructorDescriptionMethodInvocationReflectionFactory
(Method method, Object instance, Object... args) Creates a new method invocation reflection factory. -
Method Summary
Modifier and TypeMethodDescriptionString[]
getNames()
Get the factory names.org.openqa.selenium.Capabilities
newCapabilities
(ConfigurationProperties configuration) Creates a new instance ofCapabilities
.
-
Constructor Details
-
MethodInvocationReflectionFactory
Creates a new method invocation reflection factory.- Parameters:
method
- method to invoke that returns aCapabilities
instanceinstance
- instance to useargs
- arguments to pass
-
-
Method Details
-
newCapabilities
Description copied from interface:CapabilitiesFactory
Creates a new instance ofCapabilities
.- Specified by:
newCapabilities
in interfaceCapabilitiesFactory
- Parameters:
configuration
- configuration- Returns:
- new instance of capabilities
-
getNames
Description copied from interface:FactoryNames
Get the factory names.- Specified by:
getNames
in interfaceFactoryNames
- Returns:
- array of factory names
-