com.metasolutions.util
Class PackageRegistry
java.lang.Object
com.metasolutions.util.PackageRegistry
- All Implemented Interfaces:
- Serializable
public abstract class PackageRegistry
- extends Object
- implements Serializable
A simple Object Registry, used for runtime package configuration.
Currently, the services provided by this class include supplying
the JFCMLConfiguration, and defining package-wide variables.
- Version:
- 0.9 Jun 5, 2005
- Author:
- Shawn Curry
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PackageRegistry
public PackageRegistry()
getService
public static Object getService(String key)
- Gets the service from the specified ServiceProvider.
- Parameters:
key
- the ServiceProvider's registry key.
- Returns:
- the service, if a ServiceProvider exists and returns the service; otherwise, null.
registerService
public static void registerService(String key,
ServiceProvider provider)
- Registers a ServiceProvider.
- Parameters:
key
- the registry key of this ServiceProviderprovider
- the ServiceProvider
Copyright 2004-2005 Shawn Curry, http://jfcml.sourceforge.net
Licensed under the Academic Free License version 2.1