public final class VirtualIntentInstallerRegistry
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
<T extends org.onosproject.net.intent.Intent> |
getInstaller(java.lang.Class<T> cls)
Get an Intent installer by given Intent type.
|
java.util.Map<java.lang.Class<? extends org.onosproject.net.intent.Intent>,org.onosproject.net.intent.IntentInstaller<? extends org.onosproject.net.intent.Intent>> |
getInstallers()
Returns immutable set of binding of currently registered intent installers.
|
static VirtualIntentInstallerRegistry |
getInstance() |
<T extends org.onosproject.net.intent.Intent> |
registerInstaller(java.lang.Class<T> cls,
org.onosproject.net.intent.IntentInstaller<T> installer)
Registers the specific installer for the given intent class.
|
<T extends org.onosproject.net.intent.Intent> |
unregisterInstaller(java.lang.Class<T> cls)
Unregisters the installer for the specific intent class.
|
public static VirtualIntentInstallerRegistry getInstance()
public <T extends org.onosproject.net.intent.Intent> void registerInstaller(java.lang.Class<T> cls,
org.onosproject.net.intent.IntentInstaller<T> installer)
T - the type of intentcls - intent classinstaller - intent installerpublic <T extends org.onosproject.net.intent.Intent> void unregisterInstaller(java.lang.Class<T> cls)
T - the type of intentcls - intent classpublic java.util.Map<java.lang.Class<? extends org.onosproject.net.intent.Intent>,org.onosproject.net.intent.IntentInstaller<? extends org.onosproject.net.intent.Intent>> getInstallers()
public <T extends org.onosproject.net.intent.Intent> org.onosproject.net.intent.IntentInstaller<T> getInstaller(java.lang.Class<T> cls)
T - the Intent typecls - the Intent type