com.github.dynamicextensionsalfresco.controlpanel.BundleIdentifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of control-panel Show documentation
Show all versions of control-panel Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
package com.github.dynamicextensionsalfresco.controlpanel;
import org.osgi.framework.Version;
public class BundleIdentifier {
public static BundleIdentifier fromSymbolicNameAndVersion(final String symbolicName, final String version) {
return new BundleIdentifier(symbolicName, new Version(version));
}
private final String symbolicName;
private final Version version;
private BundleIdentifier(final String symbolicName, final Version version) {
this.symbolicName = symbolicName;
this.version = version;
}
public String getSymbolicName() {
return symbolicName;
}
public Version getVersion() {
return version;
}
public String toJarFilename() {
return String.format("%s.jar", getSymbolicName());
}
@Override
public String toString() {
return "BundleIdentifier{" +
"symbolicName='" + symbolicName + '\'' +
", version=" + version +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy