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