Decompose RPC implementation classes
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / statistics / services / AggregateFlowsInTableService.java
index 2a586862b7560b99d4e03ca05ff01d457bd0a623..db0356abbe9258a79a8ff4cf4fbf960ff2769115 100644 (file)
@@ -40,25 +40,13 @@ public final class AggregateFlowsInTableService extends
         AbstractCompatibleStatService<GetAggregateFlowStatisticsFromFlowTableForAllFlowsInput,
                                       GetAggregateFlowStatisticsFromFlowTableForAllFlowsOutput,
                                       AggregateFlowStatisticsUpdate> {
-
-    final TranslatorLibrary translatorLibrary;
-
-    public static AggregateFlowsInTableService createWithOook(final RequestContextStack requestContextStack,
-                                                              final DeviceContext deviceContext,
-                                                              final AtomicLong compatibilityXidSeed) {
-        return new AggregateFlowsInTableService(requestContextStack,
-                                                deviceContext,
-                                                compatibilityXidSeed,
-                                                deviceContext.oook());
-    }
+    private final TranslatorLibrary translatorLibrary;
 
     public AggregateFlowsInTableService(final RequestContextStack requestContextStack,
                                         final DeviceContext deviceContext,
-                                        final AtomicLong compatibilityXidSeed,
-                                        final TranslatorLibrary translatorLibrary) {
+                                        final AtomicLong compatibilityXidSeed) {
         super(requestContextStack, deviceContext, compatibilityXidSeed);
-
-        this.translatorLibrary = translatorLibrary;
+        translatorLibrary = deviceContext.oook();
     }
 
     @Override