public class DependencyProviderBase extends Object implements DependencyProvider
Constructor and Description |
---|
DependencyProviderBase() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getDependency(Class<T> clazz)
Retrieve the dependency of type T.
|
<T> T |
register(Class<T> clazz,
T obj)
Register a new provided dependency.
|
public <T> T getDependency(Class<T> clazz) throws ClassNotFoundException
getDependency
in interface DependencyProvider
T
- The type of the dependency class.clazz
- the dependency's classClassNotFoundException
- if provider does not have a class registered for the
requested class typepublic <T> T register(Class<T> clazz, T obj)
T
- The type of the dependency.clazz
- the class to registerobj
- the instance to provideCopyright © 2025 Open Identity Platform Community. All rights reserved.