org.apache.hivemind.annotations.internal
Class MethodCallImplementationConstructor

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.hivemind.internal.AbstractServiceImplementationConstructor
          extended by org.apache.hivemind.annotations.internal.MethodCallImplementationConstructor
All Implemented Interfaces:
org.apache.hivemind.definition.ImplementationConstructor, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder

public class MethodCallImplementationConstructor
extends org.apache.hivemind.internal.AbstractServiceImplementationConstructor
implements org.apache.hivemind.definition.ImplementationConstructor

Constructs a service implementation by calling a factory method defined in an annotated module by use of the Service annotation.

Author:
Achim Huegen

Constructor Summary
MethodCallImplementationConstructor(org.apache.hivemind.Location location, java.lang.reflect.Method factoryMethod, ModuleInstanceProvider moduleInstanceProvider)
           
 
Method Summary
 java.lang.Object constructCoreServiceImplementation(org.apache.hivemind.definition.ImplementationConstructionContext context)
           
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

MethodCallImplementationConstructor

public MethodCallImplementationConstructor(org.apache.hivemind.Location location,
                                           java.lang.reflect.Method factoryMethod,
                                           ModuleInstanceProvider moduleInstanceProvider)
Method Detail

constructCoreServiceImplementation

public java.lang.Object constructCoreServiceImplementation(org.apache.hivemind.definition.ImplementationConstructionContext context)
Specified by:
constructCoreServiceImplementation in interface org.apache.hivemind.definition.ImplementationConstructor


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