public final class ReflectiveModuleSupplier extends Object implements Supplier<ServiceModule>
| Constructor and Description |
|---|
ReflectiveModuleSupplier(Class<? extends ServiceModule> moduleClass)
Creates a module supplier for a given service module class.
|
public ReflectiveModuleSupplier(Class<? extends ServiceModule> moduleClass) throws NoSuchMethodException, IllegalAccessException
NoSuchMethodException - if the constructor of given service module class does not existIllegalAccessException - if accessing the no-arg module constructor failedpublic ServiceModule get()
get in interface Supplier<ServiceModule>Copyright © 2019 Exonum. All rights reserved.