com.arsdigita.search
Class MetadataProviderRegistry

java.lang.Object
  extended bycom.arsdigita.search.MetadataProviderRegistry

public class MetadataProviderRegistry
extends Object


Constructor Summary
MetadataProviderRegistry()
           
 
Method Summary
static MetadataProvider findAdapter(ObjectType type)
          Searches up the object type hierarchy until a metadata provider adapter is found
static MetadataProvider findAdapter(String type)
          Searches up the object type hierarchy until a metadata provider adapter is found
static MetadataProvider getAdapter(ObjectType type)
          Returns the adapter registered against an object type
static MetadataProvider getAdapter(String type)
          Returns the adapter registered against an object type
static void registerAdapter(ObjectType type, MetadataProvider adapter)
          Registers an adapter against an object type
static void registerAdapter(String type, MetadataProvider adapter)
          Registers an adapter against an object type
static void unregisterAdapter(ObjectType type)
          Unregisters an adapter against an object type
static void unregisterAdapter(String type)
          Unregisters an adapter against an object type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataProviderRegistry

public MetadataProviderRegistry()
Method Detail

registerAdapter

public static void registerAdapter(String type,
                                   MetadataProvider adapter)
Registers an adapter against an object type

Parameters:
type - the object type name
adapter - the metadata provider implementation

unregisterAdapter

public static void unregisterAdapter(String type)
Unregisters an adapter against an object type

Parameters:
type - the object type name

registerAdapter

public static void registerAdapter(ObjectType type,
                                   MetadataProvider adapter)
Registers an adapter against an object type

Parameters:
type - the object type
adapter - the metadata provider implementation

unregisterAdapter

public static void unregisterAdapter(ObjectType type)
Unregisters an adapter against an object type

Parameters:
type - the object type

getAdapter

public static MetadataProvider getAdapter(String type)
Returns the adapter registered against an object type

Parameters:
type - the object type name
Returns:
the metadata provider adapter, or null

getAdapter

public static MetadataProvider getAdapter(ObjectType type)
Returns the adapter registered against an object type

Parameters:
type - the object type
Returns:
the metadata provider adapter, or null

findAdapter

public static MetadataProvider findAdapter(String type)
Searches up the object type hierarchy until a metadata provider adapter is found

Parameters:
type - the object type name
Returns:
the metadata provider adapter, or null

findAdapter

public static MetadataProvider findAdapter(ObjectType type)
Searches up the object type hierarchy until a metadata provider adapter is found

Parameters:
type - the object type
Returns:
the metadata provider adapter, or null


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC