*/
package org.opendaylight.controller.sal.binding.test.util;
-import java.util.concurrent.ExecutorService;
-
-import javassist.ClassPool;
-
+import com.google.common.annotations.Beta;
import com.google.common.base.Preconditions;
import com.google.common.util.concurrent.ListeningExecutorService;
import com.google.common.util.concurrent.MoreExecutors;
+import java.util.concurrent.ExecutorService;
+@Beta
+@Deprecated
public class BindingBrokerTestFactory {
-
- private static final ClassPool CLASS_POOL = ClassPool.getDefault();
private boolean startWithParsedSchema = true;
private ExecutorService executor;
- private ClassPool classPool;
public boolean isStartWithParsedSchema() {
this.executor = executor;
}
-
public BindingTestContext getTestContext() {
Preconditions.checkState(executor != null, "Executor is not set.");
ListeningExecutorService listenableExecutor = MoreExecutors.listeningDecorator(executor);
- return new BindingTestContext(listenableExecutor, getClassPool(),startWithParsedSchema);
+ return new BindingTestContext(listenableExecutor, startWithParsedSchema);
}
-
- public ClassPool getClassPool() {
- if(classPool == null) {
- return CLASS_POOL;
- }
-
- return classPool;
- }
-
- public void setClassPool(final ClassPool classPool) {
- this.classPool = classPool;
- }
-
}