blob: 1126fef21fda61cf09782fa2c2d385500ccd8872 [file] [log] [blame]
Carmelo Cascone99c59db2019-01-17 15:39:35 -08001/*
2 * Copyright 2019-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.p4runtime.ctl;
18
19/**
20 * Utility class that provides access to P4Runtime codec instances.
21 */
22final class P4RuntimeCodecs {
23
24 static final P4RuntimeCodecs CODECS = new P4RuntimeCodecs();
25
26 private final ActionProfileMemberCodec actionProfileMember;
27 private final ActionProfileGroupCodec actionProfileGroup;
28
29 private P4RuntimeCodecs() {
30 this.actionProfileMember = new ActionProfileMemberCodec();
31 this.actionProfileGroup = new ActionProfileGroupCodec();
32 }
33
34 ActionProfileMemberCodec actionProfileMember() {
35 return actionProfileMember;
36 }
37
38 ActionProfileGroupCodec actionProfileGroup() {
39 return actionProfileGroup;
40 }
41}