-
public final class ServiceRegistrationLambda<T extends Object> extends ServiceRegistration<T>
A registration of a service that should will call a lambda function create when the service is to be instantiated.
The instantiated service is treated as a singleton, instantiation will only happen once.
-
-
Constructor Summary
Constructors Constructor Description ServiceRegistrationLambda(Function1<IServiceProvider, T> create)
-
Method Summary
Modifier and Type Method Description final Set<Class<?>>getServices()Objectresolve(IServiceProvider provider)-
-
Constructor Detail
-
ServiceRegistrationLambda
ServiceRegistrationLambda(Function1<IServiceProvider, T> create)
-
-
Method Detail
-
getServices
final Set<Class<?>> getServices()
-
resolve
Object resolve(IServiceProvider provider)
-
-
-
-