Bug 1411-4: MDSAL Binding2 Generator Impl
[mdsal.git] / binding2 / mdsal-binding2-generator-impl / src / main / java / org / opendaylight / mdsal / binding2 / generator / impl / GeneratedClassLoadingStrategy.java
1 /*
2  * Copyright (c) 2016 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
9 package org.opendaylight.mdsal.binding2.generator.impl;
10
11 import com.google.common.annotations.Beta;
12 import org.opendaylight.mdsal.binding2.generator.api.ClassLoadingStrategy;
13 import org.opendaylight.mdsal.binding2.model.api.Type;
14
15 @Beta
16 public abstract class GeneratedClassLoadingStrategy implements ClassLoadingStrategy {
17
18     @Override
19     public Class<?> loadClass(Type type) throws ClassNotFoundException {
20         return loadClass(type.getFullyQualifiedName());
21     }
22
23     @Override
24     public abstract Class<?> loadClass(String fqcn) throws ClassNotFoundException;
25 }