public interface DescriptorContext
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getJarFileName() |
java.lang.String |
getJarName() |
java.net.URL |
getJarURL() |
java.util.jar.Manifest |
getManifest() |
javax.naming.Context |
getNamingContext() |
java.lang.String |
getString(java.util.Collection<java.lang.String> descriptorNames,
java.lang.String suffix) |
java.lang.String |
getString(java.lang.String[] descriptorNames,
java.lang.String suffix) |
boolean |
isDescriptorVisible(java.util.Collection<java.lang.String> names,
boolean checkParents) |
boolean |
isDescriptorVisible(java.lang.String[] names,
boolean checkParents)
See overloaded method.
|
boolean |
isPackageVisible(java.lang.String packageName,
boolean checkParents)
Scan all manifest relevant packages (including the main one) and bundles
to determine if any rule causes the package to be made explicitly visible
or not.
|
boolean |
jarExists() |
java.net.URL getJarURL()
boolean jarExists()
java.lang.String getString(java.util.Collection<java.lang.String> descriptorNames, java.lang.String suffix) throws java.io.IOException
descriptorNames
- components of the bundle key to buildsuffix
- see oracle.adf.share.services.DescriptorConstants.ALL_SUFFIXESThe key will likely have 2 parts:
"ADF_DataControl", "model/AppModule", and the suffix part (ex: "name")
java.io.IOException
- if jar access fails (getLastModified, getManifest, etc)java.lang.String getString(java.lang.String[] descriptorNames, java.lang.String suffix) throws java.io.IOException
descriptorNames
- suffix
- java.io.IOException
- if jar access fails (getLastModified, getManifest, etc)getString(Collection, String)
java.lang.String getJarName() throws java.io.IOException
java.io.IOException
java.lang.String getJarFileName() throws java.io.IOException
java.io.IOException
boolean isPackageVisible(java.lang.String packageName, boolean checkParents) throws java.io.IOException
packageName
- null or empty string for the main jar manifest
attribute (and resource bundles). Otherwise, the packageName to check
for "Design-Visibility" in the jar manifest. If the value has multiple
elements (separated by either '/' or '.') then the following rules apply:
checkParents
- Passing false will disable the inheritance checking
described here and just check the currently requested package.java.io.IOException
boolean isDescriptorVisible(java.util.Collection<java.lang.String> names, boolean checkParents) throws java.io.IOException
names
- checkParents
- java.io.IOException
boolean isDescriptorVisible(java.lang.String[] names, boolean checkParents) throws java.io.IOException
names
- checkParents
- java.io.IOException
java.util.jar.Manifest getManifest() throws java.io.IOException
java.io.IOException
javax.naming.Context getNamingContext()