public final class VirtualIntentCompilerRegistry
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.onosproject.net.intent.Intent> |
compile(NetworkId networkId,
org.onosproject.net.intent.Intent intent,
java.util.List<org.onosproject.net.intent.Intent> previousInstallables)
Compiles an intent recursively.
|
java.util.Map<java.lang.Class<? extends org.onosproject.net.intent.Intent>,VirtualIntentCompiler<? extends org.onosproject.net.intent.Intent>> |
getCompilers()
Returns immutable set of bindings of currently registered intent compilers.
|
static VirtualIntentCompilerRegistry |
getInstance() |
<T extends org.onosproject.net.intent.Intent> |
registerCompiler(java.lang.Class<T> cls,
VirtualIntentCompiler<T> compiler)
Registers the specified compiler for the given intent class.
|
<T extends org.onosproject.net.intent.Intent> |
unregisterCompiler(java.lang.Class<T> cls)
Unregisters the compiler for the specified intent class.
|
public static VirtualIntentCompilerRegistry getInstance()
public <T extends org.onosproject.net.intent.Intent> void registerCompiler(java.lang.Class<T> cls,
VirtualIntentCompiler<T> compiler)
T - the type of intentcls - intent classcompiler - intent compilerpublic <T extends org.onosproject.net.intent.Intent> void unregisterCompiler(java.lang.Class<T> cls)
T - the type of intentcls - intent classpublic java.util.Map<java.lang.Class<? extends org.onosproject.net.intent.Intent>,VirtualIntentCompiler<? extends org.onosproject.net.intent.Intent>> getCompilers()
public java.util.List<org.onosproject.net.intent.Intent> compile(NetworkId networkId, org.onosproject.net.intent.Intent intent, java.util.List<org.onosproject.net.intent.Intent> previousInstallables)
networkId - network identifierintent - intentpreviousInstallables - previous intent installables