Method Summary |
|
public boolean | containsResource(String resource) Returns true if the indicated resource is available, false otherwise. |
public URL | findResource(String entry) Returns a URL to the requested entry if found in one of the installed
CARs or null if not found. |
public ClassLoader | getClassLoader() Return the single instance of CarClassLoader. |
public String | getContainingCarPath(String entry) Returns the path of the CAR containing the indicated resource. |
public static CarResources | getInstance() Return the single instance of CarResources. |
public InputStream | getResourceAsStream(String resource) Return an input stream for reading the raw bytes making up the resource
contained in one of the installed CARs. |
public long | getResourceSize(String resource) Return the size of the indicated resource or -1 if the resource is not
found or its size is unknown. |
public void | getServices(ContentHandler contentHandler) Push into the passed in content handler events for any services declared
in any component archive's deployment descriptor. |
public void | getWorkers(Properties workers) Push into the passed in properties object workers defined
in any component archive's deployment descriptor. |
public boolean | hasDescriptors() Returns true if any archive included a deployment descriptor. |
public String[] | listAllResources() Returns an enumeration of String objects each containing the path of a
resource available from the installed CARs. |
public String[] | listCarResources(String carPath) Returns a list of resources available in the car identified by the
passed in relative car file path name. |
public String[] | listCars() Returns a String array of car file paths relative to the car directory
specified via the property in portal.properties. |