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

aQute.bnd.osgi.resource.CapabilityImpl Maven / Gradle / Ivy

The newest version!
package aQute.bnd.osgi.resource;

import java.util.Map;

import org.osgi.resource.Capability;
import org.osgi.resource.Resource;

import aQute.bnd.build.model.conversions.CapabilityFormatter;

public class CapabilityImpl extends CapReq implements Capability {
	private static final CapabilityFormatter	cf	= new CapabilityFormatter();
	private transient String					msg	= null;

	CapabilityImpl(String namespace, Resource resource, Map directives,
		Map attributes) {
		super(namespace, resource, directives, attributes);
	}

	@Override
	public String toString() {
		String m = msg;
		if (m != null) {
			return m;
		}
		return msg = cf.convert(this);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy