Package net.sourceforge.javautil.classloader.resolver

Examples of net.sourceforge.javautil.classloader.resolver.IClassPackageResolver


   * @param groupId The group id of the package
   * @param artifactId The artifact id of the package
   * @param version The version of the package
   */
  public void add (String groupId, String artifactId, String version) {
    IClassPackageResolver resolver = ClassPackageContext.getPackageResolver();
    if (resolver == null) throw new IllegalStateException("No class package context resolver available, this feature is disabled");
   
    IClassPackageDependencyReference ref = new ClassPackageDependencyReferenceImpl(groupId, artifactId, version, null);
    IClassPackage pkg = ClassPackageUtil.get(resolver, ref, true);
    if (pkg == null) throw new IllegalArgumentException("Could not resolve: " + ref);
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.classloader.resolver.IClassPackageResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.