Package org.forgerock.audit
Interface DependencyProvider
- All Known Implementing Classes:
DependencyProviderBase
public interface DependencyProvider
An interface for a simple dependency provider.
-
Method Summary
Modifier and TypeMethodDescription<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 Details
-
getDependency
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
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
-