@Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("BundleDestinationBaseDirectory [name=").append(getName()).append(", valueContext=").append( valueContext).append(", valueName=").append(valueName).append(", description=").append(getDescription()) .append("]"); return builder.toString(); } }
/** * Adds a destination base directory that can be used as a target for a bundle deployment. * * @param name the name of this bundle destination base directory (must not be <code>null</code>) * @param valueContext indicates where the value's name can be looked up and found. This * must be the string form of one of the enums found * in {@link BundleDestinationBaseDirectory.Context} * @param valueName the name of the property found in the given context where the value * of the base directory is * @param description optional explanation for what this destination location is * * @deprecated since 4.13, use {@link #addBundleDestinationBaseDirectory(String, String, String, String, java.util.List)} */ public void addBundleDestinationBaseDirectory(String name, String valueContext, String valueName, String description) { // we create this just to make sure the context and value are valid. An exception will be thrown if they are not. addBundleDestinationSpecification(new BundleDestinationBaseDirectory(name, valueContext, valueName, description, Collections.<String>emptyList())); }
if (bdbd.getName().equals(destBaseDirName)) { bundleDestBaseDir = bdbd; break; String destBaseDirValueName = bundleDestBaseDir.getValueName(); // the name we look up in the given context String baseLocation; switch (bundleDestBaseDir.getValueContext()) { case fileSystem: { if (!new File(relativeDeployDir).isAbsolute()) { + "] in the context [" + bundleDestBaseDir.getValueContext() + "] along with the destination directory of [" + relativeDeployDir + "] did not resolve to an absolute path [" + destDir.getPath()
T ret = (T) new BundleDestinationBaseDirectory(name, valueContext, valueName, description, accepts); return ret; } else if (determinedClass.equals(BundleDestinationDefinition.class) && (expectedClass.equals(
/** * Adds a destination base directory that can be used as a target for a bundle deployment. * * @param name the name of this bundle destination base directory (must not be <code>null</code>) * @param valueContext indicates where the value's name can be looked up and found. This * must be the string form of one of the enums found * in {@link BundleDestinationBaseDirectory.Context} * @param valueName the name of the property found in the given context where the value * of the base directory is * @param description optional explanation for what this destination location is * @param acceptedBundleTypes the list of accepted bundle types. Must not be null. */ public void addBundleDestinationBaseDirectory(String name, String valueContext, String valueName, String description, List<String> acceptedBundleTypes) { // we create this just to make sure the context and value are valid. An exception will be thrown if they are not. addBundleDestinationSpecification(new BundleDestinationBaseDirectory(name, valueContext, valueName, description, acceptedBundleTypes)); }
@Override protected void fillPropertyMap(PropertyMap map) { super.fillPropertyMap(map); PropertySimple valueContextProp = new PropertySimple(BUNDLE_DEST_BASE_DIR_VALUE_CONTEXT_NAME, getValueContext().name()); PropertySimple valueNameProp = new PropertySimple(BUNDLE_DEST_BASE_DIR_VALUE_NAME_NAME, getValueName()); map.put(valueContextProp); map.put(valueNameProp); }