diff options
author | jan.srnicek <jan.srnicek@pantheon.tech> | 2017-12-05 14:48:15 +0100 |
---|---|---|
committer | jan.srnicek <jan.srnicek@pantheon.tech> | 2017-12-05 14:48:43 +0100 |
commit | 7a12f0259d63fb1ee5dfa902dc18e447c197474d (patch) | |
tree | e3a84a8955dca9ba0f8151c31e56ffc2e4fc796a | |
parent | 159c08f9808865484f0efad24fc3d721549abe61 (diff) |
Allow table type registration for BGP extension
modules with different package name
Change-Id: I0f6336052081fff923711e71cf85b748d8d4c730
Signed-off-by: jan.srnicek <jan.srnicek@pantheon.tech>
-rw-r--r-- | infra/northbound/bgp-extensions/extension-common/src/main/java/io/fd/honeycomb/northbound/bgp/extension/AbstractBgpExtensionModule.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/infra/northbound/bgp-extensions/extension-common/src/main/java/io/fd/honeycomb/northbound/bgp/extension/AbstractBgpExtensionModule.java b/infra/northbound/bgp-extensions/extension-common/src/main/java/io/fd/honeycomb/northbound/bgp/extension/AbstractBgpExtensionModule.java index caab1a83f..a9540442b 100644 --- a/infra/northbound/bgp-extensions/extension-common/src/main/java/io/fd/honeycomb/northbound/bgp/extension/AbstractBgpExtensionModule.java +++ b/infra/northbound/bgp-extensions/extension-common/src/main/java/io/fd/honeycomb/northbound/bgp/extension/AbstractBgpExtensionModule.java @@ -98,7 +98,7 @@ public abstract class AbstractBgpExtensionModule extends AbstractModule implemen .forEach(aClass -> applicationRibWritersBinder.addBinding().to(aClass)); } - static final class TableTypeRegistration { + public static final class TableTypeRegistration { private final Class<? extends AddressFamily> addressFamily; private final Class<? extends SubsequentAddressFamily> subsequentAddressFamily; private final Class<? extends AfiSafiType> afiSafiType; @@ -111,7 +111,7 @@ public abstract class AbstractBgpExtensionModule extends AbstractModule implemen this.afiSafiType = afiSafiType; } - static TableTypeRegistration tableType(@Nonnull final Class<? extends AddressFamily> addressFamily, + public static TableTypeRegistration tableType(@Nonnull final Class<? extends AddressFamily> addressFamily, @Nonnull final Class<? extends SubsequentAddressFamily> subsequentAddressFamily, @Nonnull final Class<? extends AfiSafiType> afiSafiType) { return new TableTypeRegistration(addressFamily, subsequentAddressFamily, afiSafiType); |