org.apache.hivemind.service.impl
Class AutowiringByTypeStrategy

java.lang.Object
  extended by org.apache.hivemind.service.impl.AutowiringByTypeStrategy
All Implemented Interfaces:
AutowiringStrategy

public class AutowiringByTypeStrategy
extends java.lang.Object
implements AutowiringStrategy

Implementation of AutowiringStrategy that searches for a matching service by the type of a property.

Author:
Achim Huegen

Field Summary
 
Fields inherited from interface org.apache.hivemind.service.AutowiringStrategy
BY_TYPE
 
Constructor Summary
AutowiringByTypeStrategy()
           
 
Method Summary
 boolean autowireProperty(RegistryInfrastructure registry, java.lang.Object target, java.lang.String propertyName)
          Autowire a single property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutowiringByTypeStrategy

public AutowiringByTypeStrategy()
Method Detail

autowireProperty

public boolean autowireProperty(RegistryInfrastructure registry,
                                java.lang.Object target,
                                java.lang.String propertyName)
Description copied from interface: AutowiringStrategy
Autowire a single property.

Specified by:
autowireProperty in interface AutowiringStrategy
Parameters:
registry - registry for lookup of services
target - the target object
propertyName - name of the property
Returns:
true if the wiring has succeeded


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