org.apache.hivemind.annotations.internal
Class ModuleInstanceProviderImpl

java.lang.Object
  extended by org.apache.hivemind.annotations.internal.ModuleInstanceProviderImpl
All Implemented Interfaces:
java.util.EventListener, ModuleInstanceProvider, org.apache.hivemind.events.RegistryInitializationListener

public class ModuleInstanceProviderImpl
extends java.lang.Object
implements ModuleInstanceProvider

Implementation of ModuleInstanceProvider.

Author:
Achim Huegen

Constructor Summary
ModuleInstanceProviderImpl(java.lang.Class moduleClass, java.lang.String moduleId)
           
 
Method Summary
 java.lang.Object getModuleInstance()
           
 void registryInitialized(org.apache.hivemind.internal.RegistryInfrastructure registry)
          Called after initialization of the registry infrastructure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleInstanceProviderImpl

public ModuleInstanceProviderImpl(java.lang.Class moduleClass,
                                  java.lang.String moduleId)
Method Detail

getModuleInstance

public java.lang.Object getModuleInstance()
Specified by:
getModuleInstance in interface ModuleInstanceProvider
Returns:
the module instance

registryInitialized

public void registryInitialized(org.apache.hivemind.internal.RegistryInfrastructure registry)
Called after initialization of the registry infrastructure. This is a good moment to create the module instance. If any service defined in the module is initialized during startup (by the EagerLoad service) it will find the registry reference in place.

Specified by:
registryInitialized in interface org.apache.hivemind.events.RegistryInitializationListener
See Also:
RegistryInitializationListener.registryInitialized(org.apache.hivemind.internal.RegistryInfrastructure)


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