com.hp.hpl.jena.rdf.model
Class ModelMakerCreatorRegistry

java.lang.Object
  extended by com.hp.hpl.jena.rdf.model.ModelMakerCreatorRegistry

public class ModelMakerCreatorRegistry
extends Object

A registry of ways of creating ModelMakers, keyed by their JMS type. A ModelMakerCreator registered by type here will be used by a ModelSpec description which needs a ModelMaker and supplies a registered type for that maker.

The Registry is pre-loaded with the three standard ModelMakerCreator's, for Mem, File, and RDB ModelMakers.

Author:
hedgehog

Method Summary
static ModelMakerCreator findCreator(Resource type)
          Answer the Creator which has been registred with the given type, or null if there's no such registered Creator
static void register(Resource type, ModelMakerCreator mmc)
          Register the given ModelMakerCreator under the given JMS type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findCreator

public static ModelMakerCreator findCreator(Resource type)
Answer the Creator which has been registred with the given type, or null if there's no such registered Creator

Parameters:
type - the JMS type of the Creator
Returns:
that Creator, or null

register

public static void register(Resource type,
                            ModelMakerCreator mmc)
Register the given ModelMakerCreator under the given JMS type.

Parameters:
type - the type to register it as
mmc - the Creator to register


Copyright © 2000, 2001, 2002, 2003, 2004 Hewlett-Packard Development Company, LP