Package org.jboss.arquillian.drone.spi

Examples of org.jboss.arquillian.drone.spi.Instantiator.createInstance()


            @Override
            protected DRONE createInstance() throws Exception {
                DroneConfiguration<?> configuration = context
                        .get(dronePoint)
                        .getConfigurationAs(DroneConfiguration.class);
                return (DRONE) instantiator.createInstance(configuration);
            }
        };

        context.get(dronePoint).setFutureInstance(futureDrone);
View Full Code Here


        Instantiator instantiator = registry.getEntryFor(implementationClass, Instantiator.class);

        // if we've found an instantiator and at the same time we are sure that it is not the current one
        // invoke it instead in order to get capabilities and other advanced stuff
        if (instantiator != null && instantiator.getClass() != this.getClass()) {
            return (WebDriver) instantiator.createInstance(configuration);
        }

        // this is a simple constructor which does not know anything advanced
        WebDriver driver = SecurityActions.newInstance(configuration.getImplementationClass(), new Class<?>[0], new Object[0],
                WebDriver.class);
View Full Code Here

        CachingCallable futureDrone = new CachingCallableImpl<DRONE>() {
            @Override
            protected DRONE createInstance() throws Exception {
                DroneConfiguration<?> configuration = context.getDroneConfiguration(injectionPoint,
                        DroneConfiguration.class);
                return (DRONE) instantiator.createInstance(configuration);
            }
        };

        context.storeFutureDrone(injectionPoint, futureDrone);
View Full Code Here

        DroneContext dc = methodContext.get().getOrCreate(method);

        DroneConfiguration configuration = configurator.createConfiguration(desc, qualifier);
        dc.add(configuration.getClass(), qualifier, configuration);

        Object instance = instantiator.createInstance(configuration);
        dc.add(type, qualifier, instance);

        if (log.isLoggable(Level.FINE)) {
            log.fine("Stored method lifecycle based Drone instance, type: " + type.getName() + ", qualifier: "
                    + qualifier.getName() + ", instanceClass: " + instance.getClass());
View Full Code Here

        if (log.isLoggable(Level.FINE)) {
            log.fine("Using instantiator defined in class: " + instantiator.getClass().getName() + ", with precedence "
                    + instantiator.getPrecedence());
        }

        droneContext.get().add(typeClass, qualifier, instantiator.createInstance(configuration));
    }
}
View Full Code Here

        }

        // if we've found an instantiator and at the same time we are sure that it is not the current one
        // invoke it instead in order to get capabilities and other advanced stuff
        if (instantiator != null && instantiator.getClass() != this.getClass()) {
            return (WebDriver) instantiator.createInstance(configuration);
        }

        // this is a simple constructor which does not know anything advanced
        if (Validate.empty(implementationClassName)) {
            WebDriver driver = SecurityActions.newInstance(implementationClassName, new Class<?>[0], new Object[0],
View Full Code Here

        }

        // if we've found an instantiator and at the same time we are sure that it is not the current one
        // invoke it instead in order to get capabilities and other advanced stuff
        if (instantiator != null && instantiator.getClass() != this.getClass()) {
            return (WebDriver) instantiator.createInstance(configuration);
        }

        // this is a simple constructor which does not know anything advanced
        if (Validate.empty(implementationClassName)) {
            WebDriver driver = SecurityActions.newInstance(implementationClassName, new Class<?>[0], new Object[0],
View Full Code Here

        if (log.isLoggable(Level.FINE)) {
            log.fine("Using instantiator defined in class: " + instantiator.getClass().getName() + ", with precedence "
                    + instantiator.getPrecedence());
        }

        droneContext.add(typeClass, qualifier, instantiator.createInstance(configuration));
    }

    @SuppressWarnings("unchecked")
    public void createWebTestBrowser(@Observes MethodDroneConfigured event, DroneRegistry registry,
            MethodContext droneMethodContext) {
View Full Code Here

        if (log.isLoggable(Level.FINE)) {
            log.fine("Using instantiator defined in class: " + instantiator.getClass().getName() + ", with precedence "
                    + instantiator.getPrecedence());
        }

        droneMethodContext.add(typeClass, qualifier, instantiator.createInstance(configuration));
    }
}
View Full Code Here

        }

        // if we've found an instantiator and at the same time we are sure that it is not the current one
        // invoke it instead in order to get capabilities and other advanced stuff
        if (instantiator != null && instantiator.getClass() != this.getClass()) {
            return (WebDriver) instantiator.createInstance(configuration);
        }

        // this is a simple constructor which does not know anything advanced
        if (Validate.empty(implementationClassName)) {
            WebDriver driver = SecurityActions.newInstance(implementationClassName, new Class<?>[0], new Object[0],
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.