2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.match;
13 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.ConvertReactor;
14 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.Convertor;
15 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.InjectionKey;
16 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.ResultInjector;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.Match;
22 public class MatchReactor extends ConvertReactor<Match> {
24 private static MatchReactor instance;
26 private MatchReactor() {
33 public static synchronized MatchReactor getInstance() {
34 if (instance == null) {
35 instance = new MatchReactor();
41 protected void initMappings(Map<Short, Convertor<Match,?>> conversions,
42 Map<InjectionKey, ResultInjector<?,?>> injections) {
43 MatchReactorMappingFactory.addMatchConvertors(conversions);
44 MatchReactorMappingFactory.addMatchIjectors(injections);