All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dynamicextensionsalfresco.controlpanel.BundleIdentifier Maven / Gradle / Ivy

Go to download

Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features

There is a newer version: 3.1.0
Show newest version
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