fr.hhdev.ocelot.spi.IDataServiceResolver Maven / Gradle / Ivy
The newest version!
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package fr.hhdev.ocelot.spi;
/**
* Implemente this class to do a resolver
* @author hhfrancois
*/
public interface IDataServiceResolver {
/**
* Return a instance for class by contextual resolver
* @param
* @param clazz
* @return a dataservice
* @throws DataServiceException
*/
T resolveDataService(Class clazz) throws DataServiceException;
/**
* Return scope for bean in resolver context
* @param clazz
* @return
*/
Scope getScope(Class clazz);
}