public final class VirtualIntentCompilerRegistry extends Object
| Modifier and Type | Method and Description |
|---|---|
List<org.onosproject.net.intent.Intent> |
compile(NetworkId networkId,
org.onosproject.net.intent.Intent intent,
List<org.onosproject.net.intent.Intent> previousInstallables)
Compiles an intent recursively.
|
Map<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(Class<T> cls,
VirtualIntentCompiler<T> compiler)
Registers the specified compiler for the given intent class.
|
<T extends org.onosproject.net.intent.Intent> |
unregisterCompiler(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(Class<T> cls, VirtualIntentCompiler<T> compiler)
T - the type of intentcls - intent classcompiler - intent compilerpublic <T extends org.onosproject.net.intent.Intent> void unregisterCompiler(Class<T> cls)
T - the type of intentcls - intent classpublic Map<Class<? extends org.onosproject.net.intent.Intent>,VirtualIntentCompiler<? extends org.onosproject.net.intent.Intent>> getCompilers()
public List<org.onosproject.net.intent.Intent> compile(NetworkId networkId, org.onosproject.net.intent.Intent intent, List<org.onosproject.net.intent.Intent> previousInstallables)
networkId - network identifierintent - intentpreviousInstallables - previous intent installables