org.apache.hivemind.impl
Class ExtensionResolver

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

public class ExtensionResolver
extends java.lang.Object

Resolves the unresolved extensions in all modules of a RegistryDefinition during the construction of a registry by RegistryBuilder. Every unresolved extension (e.g. contribution, interceptor) references an extension point by its fully qualified id. This class looks for these extension points in the registry definition and adds the formerly unresolved extension directly to the extension points. The error handling is delegated to an instance of ErrorHandler.

Author:
Achim Huegen

Constructor Summary
ExtensionResolver(RegistryDefinition definition, ErrorHandler errorHandler)
           
 
Method Summary
 void resolveExtensions()
          Resolves all unresolved extensions in the registry definition passed in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionResolver

public ExtensionResolver(RegistryDefinition definition,
                         ErrorHandler errorHandler)
Method Detail

resolveExtensions

public void resolveExtensions()
Resolves all unresolved extensions in the registry definition passed in the constructor. During this process the object graph represented by the registry definition is changed, so that afterwards it doesn't contain unresolved extensions any longer if anything went ok. If errors occur it depends on the assigned ErrorHandler whether an exceptions is raised or errors are logged only. In the latter case all extensions that couldn't be resolved will remain in the module definitions.



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