Arquillian Drone Extension Implementation 1.0.0.CR4

org.jboss.arquillian.drone.impl
Class DroneRegistryImpl

java.lang.Object
  extended by org.jboss.arquillian.drone.impl.DroneRegistryImpl
All Implemented Interfaces:
DroneRegistry

public class DroneRegistryImpl
extends Object
implements DroneRegistry

Register of available Configurators, Instantiators and Destructors discovered via SPI. Stores only one of them per type, so DroneRegistrar is responsible for selecting correct implementations.

Author:
Constructor Summary
DroneRegistryImpl()
           
 
Method Summary
<T extends Sortable>
T
getEntryFor(Class<?> key, Class<T> entryType)
           
 DroneRegistry registerConfiguratorFor(Class<?> key, Configurator<?,?> configurator)
          Registers a configurator for given object type
 DroneRegistry registerDestructorFor(Class<?> key, Destructor<?> value)
          Registers a destructor for given object type
 DroneRegistry registerInstantiatorFor(Class<?> key, Instantiator<?,?> value)
          Registers a instantiator for given object type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DroneRegistryImpl

public DroneRegistryImpl()
Method Detail

registerConfiguratorFor

public DroneRegistry registerConfiguratorFor(Class<?> key,
                                             Configurator<?,?> configurator)
Registers a configurator for given object type

Specified by:
registerConfiguratorFor in interface DroneRegistry
Parameters:
key - Type to be registered
configurator - Configurator to be stored
Returns:
Modified registry

registerInstantiatorFor

public DroneRegistry registerInstantiatorFor(Class<?> key,
                                             Instantiator<?,?> value)
Registers a instantiator for given object type

Specified by:
registerInstantiatorFor in interface DroneRegistry
Parameters:
key - Type to be registered
value - Instantiator to be stored
Returns:
Modified registry

registerDestructorFor

public DroneRegistry registerDestructorFor(Class<?> key,
                                           Destructor<?> value)
Registers a destructor for given object type

Specified by:
registerDestructorFor in interface DroneRegistry
Parameters:
key - Type to be registered
value - Destructor to be stored
Returns:
Modified registry

getEntryFor

public <T extends Sortable> T getEntryFor(Class<?> key,
                                          Class<T> entryType)
                               throws IllegalStateException
Specified by:
getEntryFor in interface DroneRegistry
Throws:
IllegalStateException

Arquillian Drone Extension Implementation 1.0.0.CR4

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.