JFCML - JFC/Swing
XML Markup Language

com.metasolutions.util
Class PackageRegistry

java.lang.Object
  extended by 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

Constructor Summary
PackageRegistry()
           
 
Method Summary
static Object getService(String key)
          Gets the service from the specified ServiceProvider.
static void registerService(String key, ServiceProvider provider)
          Registers a ServiceProvider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageRegistry

public PackageRegistry()
Method Detail

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 ServiceProvider
provider - the ServiceProvider

SourceForge.net
java.net

Copyright 2004-2005 Shawn Curry, http://jfcml.sourceforge.net
Licensed under the Academic Free License version 2.1