org.apache.hivemind.internal
Class AbstractConstructionContext

java.lang.Object
  extended by org.apache.hivemind.internal.AbstractConstructionContext
All Implemented Interfaces:
ConstructionContext
Direct Known Subclasses:
ImplementationConstructionContextImpl

public abstract class AbstractConstructionContext
extends java.lang.Object
implements ConstructionContext

Default Implementation of ConstructionContext.

Author:
Achim Huegen

Constructor Summary
AbstractConstructionContext(Module definingModule)
           
 
Method Summary
 boolean containsService(java.lang.Class serviceInterface)
           
 java.lang.Object getConfiguration(java.lang.String configurationId)
           
 Module getDefiningModule()
           
 RegistryInfrastructure getRegistry()
          Returns a reference to the RegistryInfrastructure.
 java.lang.Object getService(java.lang.Class serviceInterface)
           
 java.lang.Object getService(java.lang.String serviceId, java.lang.Class serviceInterface)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConstructionContext

public AbstractConstructionContext(Module definingModule)
Method Detail

getConfiguration

public java.lang.Object getConfiguration(java.lang.String configurationId)
Specified by:
getConfiguration in interface ConstructionContext
See Also:
Module.getConfiguration(String)

getDefiningModule

public Module getDefiningModule()
Specified by:
getDefiningModule in interface ConstructionContext
Returns:
the module that defined the constructor that is constructed now.
See Also:
ConstructionContext.getDefiningModule()

getService

public java.lang.Object getService(java.lang.String serviceId,
                                   java.lang.Class serviceInterface)
Specified by:
getService in interface ConstructionContext
See Also:
ConstructionContext.getService(java.lang.String, java.lang.Class)

getService

public java.lang.Object getService(java.lang.Class serviceInterface)
Specified by:
getService in interface ConstructionContext
See Also:
ConstructionContext.getService(java.lang.Class)

containsService

public boolean containsService(java.lang.Class serviceInterface)
Specified by:
containsService in interface ConstructionContext
See Also:
ConstructionContext.containsService(java.lang.Class)

getRegistry

public RegistryInfrastructure getRegistry()
Description copied from interface: ConstructionContext
Returns a reference to the RegistryInfrastructure. This allows access to services and configurations without the visibility checks performed by the other getter methods.

Specified by:
getRegistry in interface ConstructionContext
Returns:
the registry
See Also:
ConstructionContext.getRegistry()


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