-
public abstract class ServiceRegistration<T extends Object>A registration of a service during the build phase.
-
-
Constructor Summary
Constructors Constructor Description ServiceRegistration()
-
Method Summary
Modifier and Type Method Description final Set<Class<?>>getServices()final <TService extends Any> ServiceRegistration<T>provides()final <TService extends Any> ServiceRegistration<T>provides(Class<TService> c)Indicate this registration wants to provide the provided class as a service. abstract Objectresolve(IServiceProvider provider)-
-
Method Detail
-
getServices
final Set<Class<?>> getServices()
-
provides
final <TService extends Any> ServiceRegistration<T> provides()
-
provides
final <TService extends Any> ServiceRegistration<T> provides(Class<TService> c)
Indicate this registration wants to provide the provided class as a service. The expectation is the provided class is implemented by the registered implementation.
- Parameters:
c- The class that is to be provided as a service.
-
resolve
abstract Object resolve(IServiceProvider provider)
-
-
-
-