toolbox.services
Interface DependencyResolver

Package class diagram package DependencyResolver
All Known Implementing Classes:
FactoryResolver, PojoResolver, ServiceResolver

public interface DependencyResolver

Interface that defines a mechanism for resolving service dependencies.


Method Summary
 void resolve(java.lang.Object svcInstance, java.lang.Class svcClass, java.util.Map config)
          Resolve the service dependency as described in the given dependency config parameters.
 

Method Detail

resolve

void resolve(java.lang.Object svcInstance,
             java.lang.Class svcClass,
             java.util.Map config)
             throws ServiceException
Resolve the service dependency as described in the given dependency config parameters. If the dependency is resolved successfully it is injected into the given service instance.

Parameters:
svcInstance - Service instance for which the dependency must be resolved.
svcClass - Class that defines the service type.
config - Map containing the dependency configuration.
Throws:
ServiceException - if an exception occurs while trying to resolve the dependency.