Class ResourcesDesc
java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.element.resource.ResourcesDesc
The resources element specifies all the resources that are part of the application, such as
Java class files, native libraries, and system properties.
- Version:
- $Revision: 1.7 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String[]the arch for these resourcesstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprivate final JNLPFilethe JNLPFile this information is forprivate final Locale[]the locales of these resourcesstatic final Stringprivate final String[]the OS for these resourcesstatic final Stringstatic final Stringstatic final Stringlist of jars, packages, properties, and extensionsstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionResourcesDesc(JNLPFile jnlpFile, Locale[] locales, String[] os, String[] arch) Create a representation of one information section of the JNLP File. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResource(Object resource) Add a resource.String[]getArch()JARDesc[]getJARs()JARDesc[]JREDesc[]getJREs()Locale[]static JARDescgetMainJAR(List<JARDesc> jars) static JARDescgetMainJAR(JARDesc[] jars) String[]getOS()getPackages(String className) Returns the Packages that match the specified class name.<T> List<T> getResources(Class<T> type) private static <T> TgetWontedResource(Object resource, Class<T> type) private static <T> booleanisWontedResource(Object resource, Class<T> type)
-
Field Details
-
RESOURCES_ELEMENT
- See Also:
-
OS_ATTRIBUTE
- See Also:
-
ARCH_ATTRIBUTE
- See Also:
-
NATIVELIB_ELEMENT
- See Also:
-
JAR_ELEMENT
- See Also:
-
J2SE_ELEMENT
- See Also:
-
JAVA_ELEMENT
- See Also:
-
EXTENSION_ELEMENT
- See Also:
-
PROPERTY_ELEMENT
- See Also:
-
PACKAGE_ELEMENT
- See Also:
-
locales
the locales of these resources -
os
the OS for these resources -
arch
the arch for these resources -
jnlpFile
the JNLPFile this information is for -
resources
-
-
Constructor Details
-
ResourcesDesc
Create a representation of one information section of the JNLP File.- Parameters:
jnlpFile- JNLP file the resources are forlocales- the locales of these resourcesos- the os of these resourcesarch- the arch of these resources
-
-
Method Details
-
getJREs
- Returns:
- the JVMs.
-
getMainJAR
-
getMainJAR
-
getMainJAR
- Returns:
- the main JAR for these resources. There first JAR is returned if no JARs are specified as the main JAR, and if there are no JARs defined then null is returned.
-
getJARs
- Returns:
- all of the JARs.
-
getJARs
-
getExtensions
- Returns:
- the Extensions.
-
getPackages
- Returns:
- the Packages.
-
getPackages
Returns the Packages that match the specified class name.- Parameters:
className- the fully qualified class name- Returns:
- the PackageDesc objects matching the class name
-
getProperties
- Returns:
- the Properties as a list.
-
getPropertiesMap
-
getOS
- Returns:
- the os required by these resources, or null if no locale was specified in the JNLP file.
-
getArch
- Returns:
- the architecture required by these resources, or null if no locale was specified in the JNLP file.
-
getLocales
- Returns:
- the locale required by these resources, or null if no locale was specified in the JNLP file.
-
getJNLPFile
- Returns:
- the JNLPFile the resources are for.
-
getResources
-
isWontedResource
-
getWontedResource
-
addResource
-