Skip navigation links


com.essbase.eas.framework.defs
Class ManifestUtilities

java.lang.Object
  extended by com.essbase.eas.framework.defs.ManifestUtilities


public final class ManifestUtilities
extends java.lang.Object

Provides some utility methods for working with manifest files, primarily by locating all manifest files in the CLASSPATH and returning sets of objects marked with certain properties in the manifest files.

This class cannot be instantiated.

Since:
6.5.3
Version:
6.5.3, 10/23/02
Author:
Hank Cox, Painted Word

Method Summary
static void callHandler(java.lang.String property, java.lang.String method)
           
static java.lang.String convertClassName(java.lang.String candidate)
          converts a string from the format found in a manifest file to the corresponding value that can be located for Class.forName().
static java.lang.String[] getEntriesFor(java.lang.String property, java.lang.String value)
          Works through the URLs accessible to all of the class loaders looking for manifest files.
static java.net.URL[] getURLs()
          This will return all the jars under pluginDir, if it is not NULL, else return all the jars from Java CLASSPATH
static void setAppDir(java.lang.String s)
          Sets the application server directory

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getURLs

public static java.net.URL[] getURLs()
This will return all the jars under pluginDir, if it is not NULL, else return all the jars from Java CLASSPATH
Returns:
the URL's for all the jars found

getEntriesFor

public static java.lang.String[] getEntriesFor(java.lang.String property,
                                               java.lang.String value)
Works through the URLs accessible to all of the class loaders looking for manifest files. Manifest files can either be in a jar file or can be a standalone file with the name "Manifest.mf". For each manifest file located, opens the manifest, parses through the entries looking for all entries that contain the requested property and value, and adds that entry to the result set.
Parameters:
property - the property that is being searched for in the manifest entry
value - a value for the property to have; if this is null or of length zero, any entry will match.
Returns:
an array list to put the names of with attributes and values matching the other input values.

callHandler

public static void callHandler(java.lang.String property,
                               java.lang.String method)

convertClassName

public static java.lang.String convertClassName(java.lang.String candidate)
converts a string from the format found in a manifest file to the corresponding value that can be located for Class.forName().
Parameters:
candidate - string to be converted
Returns:
a class locatable version of the original string.

setAppDir

public static void setAppDir(java.lang.String s)
Sets the application server directory
Parameters:
s - the String representing the directory name

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.