org.apache.hivemind.annotations
Class AnnotatedRegistryBuilder

java.lang.Object
  extended by org.apache.hivemind.annotations.AnnotatedRegistryBuilder

public class AnnotatedRegistryBuilder
extends java.lang.Object

Helper class for defining hivemind registries that mainly base on annotated modules.

Author:
Achim Huegen

Constructor Summary
AnnotatedRegistryBuilder()
          Constructor that uses default implementations of ClassResolver, ErrorHandler and Locale.
AnnotatedRegistryBuilder(org.apache.hivemind.ClassResolver classResolver, org.apache.hivemind.ErrorHandler errorHandler, java.util.Locale locale)
          Creates a new instance.
 
Method Summary
 TypedRegistry constructRegistry(java.lang.Class... moduleClasses)
          Constructs a registry from a couple of annotated module classes specified by their class definitions.
 TypedRegistry constructRegistry(java.lang.String... moduleClassNames)
          Constructs a registry from a couple of annotated module classes specified by their name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedRegistryBuilder

public AnnotatedRegistryBuilder()
Constructor that uses default implementations of ClassResolver, ErrorHandler and Locale.


AnnotatedRegistryBuilder

public AnnotatedRegistryBuilder(org.apache.hivemind.ClassResolver classResolver,
                                org.apache.hivemind.ErrorHandler errorHandler,
                                java.util.Locale locale)
Creates a new instance.

Parameters:
classResolver - the ClassResolver used to resolve all classes referenced from elements inside this module.
errorHandler - errorHandler used for handling recoverable errors
locale - the locale to use for the registry
Method Detail

constructRegistry

public TypedRegistry constructRegistry(java.lang.String... moduleClassNames)
Constructs a registry from a couple of annotated module classes specified by their name.

Parameters:
moduleClassNames - the annotated module class names
Returns:
the registry

constructRegistry

public TypedRegistry constructRegistry(java.lang.Class... moduleClasses)
Constructs a registry from a couple of annotated module classes specified by their class definitions.

Parameters:
moduleClasses - the annotated module classes
Returns:
the registry


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