import javassist.CtClass;
import javassist.CtMethod;
import javassist.NotFoundException;
-import org.eclipse.xtext.xbase.lib.Extension;
import org.opendaylight.controller.sal.binding.api.rpc.RpcRouter;
import org.opendaylight.controller.sal.binding.codegen.RpcIsNotRoutedException;
import org.opendaylight.controller.sal.binding.spi.NotificationInvokerFactory;
@GuardedBy("this")
private final Map<Class<? extends NotificationListener>, RuntimeGeneratedInvokerPrototype> invokerClasses = new WeakHashMap<>();
private final CtClass brokerNotificationListener;
-
- @Extension
protected final JavassistUtils utils;
protected AbstractRuntimeCodeGenerator(final ClassPool pool) {
*/
package org.opendaylight.controller.sal.binding.codegen.impl;
+import com.google.common.base.Objects;
+import com.google.common.base.Preconditions;
import java.util.Set;
-
-import org.eclipse.xtext.xbase.lib.util.ToStringHelper;
import org.opendaylight.controller.sal.binding.codegen.RuntimeCodeHelper;
import org.opendaylight.controller.sal.binding.spi.NotificationInvokerFactory.NotificationInvoker;
import org.opendaylight.yangtools.yang.binding.Notification;
import org.opendaylight.yangtools.yang.binding.NotificationListener;
-import com.google.common.base.Preconditions;
-
final class RuntimeGeneratedInvoker implements NotificationInvoker {
private final org.opendaylight.controller.sal.binding.api.NotificationListener<Notification> invocationProxy;
private final RuntimeGeneratedInvokerPrototype prototype;
@Override
public String toString() {
- String result = new ToStringHelper().toString(this);
- return result;
+ return Objects.toStringHelper(this).toString();
}
}
<!--If the dependencies are test scoped, they are not visible to other maven modules depending on sal-binding-it-->
<!--TODO Create generic utilities(extract from this module) for integration tests on the controller-->
- <dependency>
- <groupId>org.opendaylight.yangtools.thirdparty</groupId>
- <artifactId>xtend-lib-osgi</artifactId>
- </dependency>
<dependency>
<groupId>org.openexi</groupId>
<artifactId>nagasena</artifactId>
mavenBundle(CONTROLLER, "sal-common-impl").versionAsInProject(), // //
mavenBundle("org.apache.commons", "commons-lang3").versionAsInProject(), //
- mavenBundle("com.google.guava", "guava").versionAsInProject(), // //
- mavenBundle(YANGTOOLS + ".thirdparty", "xtend-lib-osgi").versionAsInProject() //
+ mavenBundle("com.google.guava", "guava").versionAsInProject()
);
}