org.mule.runtime.module.artifact.util.JarInfo Maven / Gradle / Ivy
/*
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.runtime.module.artifact.util;
import static org.mule.runtime.api.util.Preconditions.checkArgument;
import java.util.Set;
/**
* Provides information about packages and resources found in a Java JAR.
*/
public class JarInfo {
private final Set packages;
private final Set resources;
/**
* Creates a new instance corresponding to a given JAR.
*
* @param packages Java packages found on the JAR. Non null.
* @param resources Java resources found on the JAR. NOn null.
*/
public JarInfo(Set packages, Set resources) {
checkArgument(packages != null, "Packages cannot be null");
checkArgument(resources != null, "Resources cannot be null");
this.packages = packages;
this.resources = resources;
}
public Set getPackages() {
return packages;
}
public Set getResources() {
return resources;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy