org.apache.hivemind.impl
Class RegistryProviderAutoDetector

java.lang.Object
  extended by org.apache.hivemind.impl.RegistryProviderAutoDetector

public class RegistryProviderAutoDetector
extends java.lang.Object

Searches for RegistryProvider implementations that are defined in manifest files. Creates an instance of each implementation and returns them in the getProviders method. The manifest file must contain a global attribute hivemind-providers which contains a comma separated list of classes that implement the RegistryProvider interface.

Author:
Achim Huegen

Field Summary
static java.lang.String HIVEMIND_SECTION_NAME
           
static java.lang.String MANIFEST
           
static java.lang.String PROVIDER_ATTRIBUTE_NAME
           
 
Constructor Summary
RegistryProviderAutoDetector(ClassResolver resolver)
           
 
Method Summary
 java.util.List getProviders()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MANIFEST

public static final java.lang.String MANIFEST
See Also:
Constant Field Values

HIVEMIND_SECTION_NAME

public static final java.lang.String HIVEMIND_SECTION_NAME
See Also:
Constant Field Values

PROVIDER_ATTRIBUTE_NAME

public static final java.lang.String PROVIDER_ATTRIBUTE_NAME
See Also:
Constant Field Values
Constructor Detail

RegistryProviderAutoDetector

public RegistryProviderAutoDetector(ClassResolver resolver)
Method Detail

getProviders

public java.util.List getProviders()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.