2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.mdsal.binding2.generator.api;
11 import com.google.common.annotations.Beta;
12 import org.opendaylight.mdsal.binding2.model.api.Type;
16 * Part of the Binding runtime context that dynamically loads Java classes into the Java
17 * Virtual Machine. Usually classes are only loaded on demand.
21 public interface ClassLoadingStrategy {
25 * @param type Generated Type
26 * @return instance of class
27 * @throws ClassNotFoundException
29 Class<?> loadClass(Type type) throws ClassNotFoundException;
33 * @param fqcn fully qualified Java class name
34 * @return instance of class
35 * @throws ClassNotFoundException
37 Class<?> loadClass(String fqcn) throws ClassNotFoundException;