All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.media.PackageManager

java.lang.Object
   |
   +----javax.media.PackageManager

public class PackageManager
extends Object
A PackageManager maintains a persistent store of package-prefix lists. A package prefix specifies the prefix for a complete class name. A factory uses a package-prefix list to find a class that might belong to any of the packages that are referenced in the prefix list.

The Manager uses package-prefix lists to find protocol handlers and content handlers for time-based media.

The current version of a package-prefix list is obtained with the get<package-prefix>List method. This method returns the prefix list in use; any changes to the list take effect immediately. Unless it is made persistent with commit<package-prefix>List, a package-prefix list is only valid while the Manager is referenced. The commit<package-prefix>List method ensures that any changes made to a package-prefix list are still visible the next time that the Manager is referenced.

Version:
1.11, 97/08/23.
See Also:
Manager

Constructor Index

 o PackageManager()

Method Index

 o commitContentPrefixList()
Make changes to the content prefix-list persistent.
 o commitProtocolPrefixList()
Make changes to the protocol package-prefix list persistent.
 o getContentPrefixList()
Get the current value of the content package-prefix list.
 o getProtocolPrefixList()
Get the current value of the protocol package-prefix list.
 o setContentPrefixList(Vector)
Set the current value of the content package-prefix list.
 o setProtocolPrefixList(Vector)
Set the protocol package-prefix list.

Constructors

 o PackageManager
 public PackageManager()

Methods

 o getProtocolPrefixList
 public static Vector getProtocolPrefixList()
Get the current value of the protocol package-prefix list.

Returns:
The protocol package-prefix list.
 o setProtocolPrefixList
 public static void setProtocolPrefixList(Vector list)
Set the protocol package-prefix list. This is required for changes to take effect.

Parameters:
list - The new package-prefix list to use.
 o commitProtocolPrefixList
 public static void commitProtocolPrefixList()
Make changes to the protocol package-prefix list persistent.

This method throws a SecurityException if the calling thread does not have access to system properties.

 o getContentPrefixList
 public static Vector getContentPrefixList()
Get the current value of the content package-prefix list. Any changes made to this list take effect immediately.

Returns:
The content package-prefix list.
 o setContentPrefixList
 public static void setContentPrefixList(Vector list)
Set the current value of the content package-prefix list. This is required for changes to take effect.

Parameters:
list - The content package-prefix list to set.
 o commitContentPrefixList
 public static void commitContentPrefixList()
Make changes to the content prefix-list persistent.

This method throws a SecurityException if the calling thread does not have access to system properties.


All Packages  Class Hierarchy  This Package  Previous  Next  Index