9e8cedc941fa63daf40e75a4a7e1ae15d08e118b
[mdsal.git] / yanglib / mdsal-yanglib-rfc8525 / src / main / java / org / opendaylight / mdsal / yanglib / rfc8525 / SimpleStrategy.java
1 /*
2  * Copyright (c) 2019 PANTHEON.tech s.r.o. 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.yanglib.rfc8525;
9
10 import org.opendaylight.mdsal.binding.runtime.api.ClassLoadingStrategy;
11
12 final class SimpleStrategy implements ClassLoadingStrategy {
13     static final SimpleStrategy INSTANCE = new SimpleStrategy();
14
15     @Override
16     public Class<?> loadClass(final String fullyQualifiedName) throws ClassNotFoundException {
17         return SimpleStrategy.class.getClassLoader().loadClass(fullyQualifiedName);
18     }
19 }