Cleaned up Java Binding code from YANG Tools
[mdsal.git] / binding / mdsal-binding-generator-impl / src / main / java / org / opendaylight / yangtools / sal / binding / generator / util / ClassCustomizer.java
1 /*
2  * Copyright (c) 2014 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.yangtools.sal.binding.generator.util;
9
10 import com.google.common.annotations.Beta;
11
12 import javassist.CtClass;
13
14 /**
15  * Interface allowing customization of classes after loading.
16  */
17 @Beta
18 public interface ClassCustomizer {
19     /**
20      * Customize a class.
21      *
22      * @param cls Class to be customized
23      * @throws Exception when a problem ensues.
24      */
25     void customizeClass(CtClass cls) throws Exception;
26 }