62c7ce5b71ff79042e796c27cb616bbfe47254d3
[mdsal.git] / binding / mdsal-binding-generator-impl / src / main / java / org / opendaylight / mdsal / 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.mdsal.binding.generator.util;
9
10 import com.google.common.annotations.Beta;
11 import javassist.CannotCompileException;
12 import javassist.CtClass;
13 import javassist.NotFoundException;
14
15 /**
16  * Interface allowing customization of classes after loading.
17  *
18  * @deprecated Code generation is a concert separate from type mapping and is an implementation detail.
19  */
20 @Beta
21 @Deprecated
22 @FunctionalInterface
23 public interface ClassCustomizer {
24     /**
25      * Customize a class.
26      *
27      * @param cls Class to be customized
28      * @throws CannotCompileException when a javassist error occurs
29      * @throws NotFoundException when a javassist error occurs
30      */
31     void customizeClass(CtClass cls) throws CannotCompileException, NotFoundException;
32 }