Package org.forgerock.audit
Interface DependencyProvider
- 
- All Known Implementing Classes:
 DependencyProviderBase
public interface DependencyProviderAn interface for a simple dependency provider. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> TgetDependency(Class<T> clazz)Retrieve the dependency of type T.default <T> TgetDependency(Class<T> clazz, String name)Retrieve the dependency of type T, with the givenname. 
 - 
 
- 
- 
Method Detail
- 
getDependency
<T> T getDependency(Class<T> clazz) throws ClassNotFoundException
Retrieve the dependency of type T.- Type Parameters:
 T- The type of the dependency class.- Parameters:
 clazz- the dependency's class- Returns:
 - the dependency
 - Throws:
 ClassNotFoundException- if provider does not have a class registered for the requested class type
 
- 
getDependency
default <T> T getDependency(Class<T> clazz, String name) throws ClassNotFoundException
Retrieve the dependency of type T, with the givenname.- Type Parameters:
 T- The type of the dependency class.- Parameters:
 clazz- the dependency's classname- the dependency's name (may benull)- Returns:
 - the dependency
 - Throws:
 ClassNotFoundException- if provider does not have a class registered for the requested class type
 
 - 
 
 -