public interface DroneRegistry
| Modifier and Type | Method and Description |
|---|---|
<E extends Sortable> |
getEntryFor(Class<?> key,
Class<E> entryType)
Checks if the registry has an entry for given key and type
|
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 an instantiator for given object type
|
<E extends Sortable> E getEntryFor(Class<?> key, Class<E> entryType) throws IllegalStateException
E - the entry typekey - the keyentryType - the type of the entry, that is Configurator, Instantiator or DestructorIllegalStateException - in case that no given entry exists for key and entryType combinationDroneRegistry registerConfiguratorFor(Class<?> key, Configurator<?,?> configurator)
key - Type to be registeredconfigurator - Configurator to be storedDroneRegistry registerInstantiatorFor(Class<?> key, Instantiator<?,?> value)
key - Type to be registeredvalue - Instantiator to be storedDroneRegistry registerDestructorFor(Class<?> key, Destructor<?> value)
key - Type to be registeredvalue - Destructor to be storedCopyright © 2016 JBoss by Red Hat. All rights reserved.