/** * Gives the text value to be used for the top-level element in the descriptor * corresponding to this bundle node type. * * @param descriptor descriptor data structure for the current node * @return */ protected String topLevelTagValue(T descriptor) { return descriptor.getModuleDescriptor().getModuleName(); }
/** * @return a value holder for all attributes of * this deployment extension elements */ public DynamicAttributesDescriptor getAttributes() { if (attributes==null) { attributes = new DynamicAttributesDescriptor(); attributes.addObserver(this); } return attributes; }
/** * Sets the archive name using the archive-name element defined * in sun-application.xml * @param archiveName archiveName to calculate default EE6 app-name */ public void setArchiveName(String archiveName) { this.archiveName = archiveName; if (appName == null && archiveName != null) { appName = DeploymentUtils.getDefaultEEName(archiveName); } }
/** * Returns true if the passed file or directory is recognized by this * instance. * * @param location the file or directory to explore * @return true if this sniffer handles this application type */ @Override public boolean handles(ReadableArchive location) { return DeploymentUtils.isArchiveOfType(location, warType, locator); }
/** * In the case of web archive, the super handles() method should be able * to make a unique identification. If not, then the archive is definitely * not a war. */ @Override protected boolean postHandles(ReadableArchive abstractArchive) throws IOException { return DeploymentUtils.isWebArchive(abstractArchive); }
/** * Adds all artifacts in Collection to those to be added to the client * facade JAR. * * @param baseFile File for the base directory within which each artifact lies * @param artifactFiles Collection of File objects for the artifacts to be included * @throws IllegalStateException if invoked after the accumulated artifacts have been consumed */ public void addAll(final File baseFile, final Collection<File> artifactFiles) { for (File f : artifactFiles) { add(baseFile, f); } }
public void setResourceAction(String resourceAction) { if(resourceAction != null) { setProperty(RESOURCE_ACTION, resourceAction); } }
/** * check whether the optional packages have all their * internal dependencies resolved * @param libDir libraryDirectory */ public static void initializeInstalledLibRegistry(String libDir ) { initializeInstalledLibRegistryForExtDirs(); initializeInstalledLibRegistryForApplibs(libDir); }
/** * Get the description * @return description. */ public String getDescription(){ return super.getDescription(); }
public String getPath() { return getProperty(PATH); } public boolean getExternallyManaged() {
/** * Sets the description * @param description. */ public void setDescription(String description){ super.setDescription(description); }
public DeploymentProperties(Properties props) { super(); putAll(props); }
@Override public ClassLoader getClassLoader() { if (parent == null) return null; return parent.getClassLoader(); }
public void setContextRoot(String contextRoot) { if(contextRoot != null) setProperty(CONTEXT_ROOT, contextRoot); }
/** * This set of get and set for WSDL_TARGET_HINT is to enable back generate WSDL with the host and port info of the * actual server target in case only one target has been specified by the client; Refer to bug ID 6157923 for more * details */ public String getWsdlTargetHint() throws IllegalArgumentException { return getProperty(WSDL_TARGET_HINT, null); }
/** * Initializes the data members. * @param description description * @param authMechVal authentication mechanism type. * @param credInterface credential interface type. */ public AuthMechanism(String description, int authMechVal, String credInterface) { super.setDescription(description); this.authMechVal = authMechVal; this.credInterface = credInterface; }
public void setVirtualServers(String virtualServers) { if(virtualServers != null) setProperty(VIRTUAL_SERVERS, virtualServers); }
public void setName(String name) { if(name != null) setProperty(NAME, name); }
public void setWsdlTargetHint(String target) { if(target != null) { setProperty(WSDL_TARGET_HINT, target); } }
public void setLibraries(String libraries) { if(libraries != null) { setProperty(DEPLOY_OPTION_LIBRARIES_KEY, libraries); } }