Package com.abiquo.draas.plugin
Class DraasPluginManager
- java.lang.Object
-
- com.abiquo.draas.plugin.DraasPluginManager
-
public class DraasPluginManager extends Object
-
-
Constructor Summary
Constructors Constructor Description DraasPluginManager(Set<String> otherPluginTypes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends com.abiquo.commons.plugin.Pluggable>
com.abiquo.commons.plugin.IConnectioncreateConnection(String type, Class<T> clazz)static voidcreateInstance(Set<String> otherPluginTypes)Map<com.abiquo.commons.model.enumerator.ConstraintKey,String>getConstraints(String type)StringgetConstraintValue(String type, com.abiquo.commons.model.enumerator.ConstraintKey constraintKey)Optional<String>getFriendlyName(String type)static DraasPluginManagergetInstance()<T extends com.abiquo.commons.plugin.Pluggable>
Optional<T>getInterface(String type, Class<T> clazz)Set<String>getSupportedTypes()booleanisLoaded(String draasType)Map<String,Map<String,List<String>>>operations(String type)voidresetWhiteList()voidsetWhiteList(Collection<String> types)
-
-
-
Method Detail
-
createInstance
public static void createInstance(Set<String> otherPluginTypes)
- Parameters:
otherPluginTypes- , types used in other plugins. Like:PluginManager#getSupportedTypes()DevicePluginManager#getSupportedTypes()
-
getInstance
public static DraasPluginManager getInstance()
-
getInterface
public <T extends com.abiquo.commons.plugin.Pluggable> Optional<T> getInterface(String type, Class<T> clazz)
-
createConnection
public <T extends com.abiquo.commons.plugin.Pluggable> com.abiquo.commons.plugin.IConnection createConnection(String type, Class<T> clazz) throws com.abiquo.commons.plugin.exception.ComputeException
- Throws:
com.abiquo.commons.plugin.exception.ComputeException
-
getConstraintValue
public String getConstraintValue(String type, com.abiquo.commons.model.enumerator.ConstraintKey constraintKey)
-
isLoaded
public boolean isLoaded(String draasType)
-
getConstraints
public Map<com.abiquo.commons.model.enumerator.ConstraintKey,String> getConstraints(String type)
-
setWhiteList
public void setWhiteList(Collection<String> types)
-
resetWhiteList
public void resetWhiteList()
-
-