Fix occasional NPEs in Connection manager
[controller.git] / opendaylight / sal / yang-prototype / sal / sal-binding-broker-impl / src / main / java / org / opendaylight / controller / sal / binding / codegen / impl / JavassistUtils.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.sal.binding.codegen.impl;
9
10 import javassist.CtClass;
11 import javassist.CtField;
12 import javassist.CtMethod;
13
14 public class JavassistUtils {
15
16     public static interface ClassGenerator {
17         void process(CtClass cls);
18     }
19
20     public static interface MethodGenerator {
21         void process(CtMethod method);
22     }
23
24     public static interface FieldGenerator {
25         void process(CtField field);
26     }
27 }