Uses of Interface
io.helidon.pico.api.ServiceProvider
Packages that use ServiceProvider
Package
Description
The Pico API provide these annotation types that are typically used at compile time
to assign special meaning to the type.
Pico's config-driven-service API.
Internal tooling for the pico maven plugin.
Pico runtime services.
Pico SPI.
Pico testing support.
-
Uses of ServiceProvider in io.helidon.pico.api
Subinterfaces of ServiceProvider in io.helidon.pico.apiModifier and TypeInterfaceDescriptioninterfaceAn extension toServiceProviderthat allows for startup binding from aPico$$Application, and thereby works in conjunction with theServiceBinderduring pico service registry initialization.Methods in io.helidon.pico.api that return ServiceProviderModifier and TypeMethodDescriptiondefault <T> ServiceProvider<T>Services.lookup(ServiceInfoCriteria criteria) Retrieves the first match based upon the passed service info criteria.default <T> ServiceProvider<T>Retrieve the "first" service that implements a given contract type with the expectation that there is a match available.default <T> ServiceProvider<T>Retrieve the "first" named service that implements a given contract type with the expectation that there is a match available.default <T> ServiceProvider<T>Services.lookupFirst(ServiceInfoCriteria criteria) Retrieves the first match based upon the passed service info criteria.default <T> ServiceProvider<T>Services.lookupFirst(Class<T> type) Retrieves the first match based upon the passed service info criteria.ActivationResult.serviceProvider()The service provider undergoing activation or deactivation.InvocationContext.serviceProvider()The service provider being intercepted.Methods in io.helidon.pico.api that return types with arguments of type ServiceProviderModifier and TypeMethodDescriptionServiceProviderBindable.interceptor()Returns the service provider that intercepts this provider.default <T> List<ServiceProvider<T>>Services.lookupAll(ServiceInfoCriteria criteria) Retrieve all services that match the criteria.List<ServiceProvider<?>>Services.lookupAll(ServiceInfoCriteria criteria, boolean expected) Retrieve all services that match the criteria.<T> List<ServiceProvider<T>>Retrieve all services that implement a given contract type.<T> Optional<ServiceProvider<T>>Services.lookupFirst(ServiceInfoCriteria criteria, boolean expected) Retrieves the first match based upon the passed service info criteria.<T> Optional<ServiceProvider<T>>Services.lookupFirst(Class<T> type, boolean expected) Retrieve the "first" service that implements a given contract type with no expectation that there is a match available unlessexpected = true.<T> Optional<ServiceProvider<T>>Services.lookupFirst(Class<T> type, String name, boolean expected) Retrieve the "first" service that implements a given contract type with no expectation that there is a match available unlessexpected = true.Map<String,? extends ServiceProvider<?>> ServiceProviderProvider.managedServiceProviders(ServiceInfoCriteria criteria) This method will only apply to the managed/slave instances being provided, not to itself as in the case forServiceProviderProvider.serviceProviders(ServiceInfoCriteria, boolean, boolean).DependencyInfo.resolvedTo()TheServiceProviderthat this dependency is optional resolved and bound to.default Optional<ServiceProvider<?>>ServiceProviderBindable.rootProvider()Gets the root/parent provider for this service.ActivationLogEntry.serviceProvider()Optionally, the managing service provider the event pertains to.PicoServiceProviderException.serviceProvider()The service provider that this exception pertains to, or empty if not related to any particular provider.List<? extends ServiceProvider<?>>ServiceProviderProvider.serviceProviders(ServiceInfoCriteria criteria, boolean wantThis, boolean thisAlreadyMatches) Returns a list of all matching service providers, potentially including itself in the result.Methods in io.helidon.pico.api with parameters of type ServiceProviderModifier and TypeMethodDescriptionvoidServiceBinder.bind(ServiceProvider<?> serviceProvider) Bind a service provider instance into the backingServicesservice registry.ServiceInjectionPlanBinder.Binder.bind(String id, ServiceProvider<?> serviceProvider) Binds a single service provider to the injection point identified byInjectionPointInfo.id().ServiceInjectionPlanBinder.Binder.bindMany(String id, ServiceProvider<?>... serviceProviders) Binds a list of service providers to the injection point identified byInjectionPointInfo.id().ServiceInjectionPlanBinder.bindTo(ServiceProvider<?> serviceProvider) Bind an injection plan to a service provider instance.static ActivationResultActivationResult.createSuccess(ServiceProvider<?> serviceProvider) Creates a successful result.default voidServiceProviderBindable.interceptor(ServiceProvider<?> interceptor) Sets the interceptor for this service provider.default voidServiceProviderBindable.rootProvider(ServiceProvider<T> rootProvider) Sets the root/parent provider for this instance.Constructors in io.helidon.pico.api with parameters of type ServiceProviderModifierConstructorDescriptionInjectionException(String msg, ServiceProvider<?> serviceProvider) Injection, or a required service lookup related exception.InjectionException(String msg, Throwable cause, ServiceProvider<?> serviceProvider) Injection, or a required service lookup related exception.InvocationException(String msg, Throwable cause, ServiceProvider<?> serviceProvider) Constructor.PicoServiceProviderException(String msg, ServiceProvider<?> serviceProvider) A general purpose exception from Pico.PicoServiceProviderException(String msg, Throwable cause, ServiceProvider<?> serviceProvider) A general purpose exception from Pico. -
Uses of ServiceProvider in io.helidon.pico.configdriven.runtime
Subinterfaces of ServiceProvider in io.helidon.pico.configdriven.runtimeModifier and TypeInterfaceDescriptioninterfaceAn extension toServiceProviderthat represents a config-driven service.Classes in io.helidon.pico.configdriven.runtime that implement ServiceProviderModifier and TypeClassDescriptionclassAbstract base for any config-driven-service.Methods in io.helidon.pico.configdriven.runtime that return types with arguments of type ServiceProviderModifier and TypeMethodDescriptionAbstractConfiguredServiceProvider.rootProvider()List<ServiceProvider<?>>AbstractConfiguredServiceProvider.serviceProviders(ServiceInfoCriteria criteria, boolean wantThis, boolean thisAlreadyMatches) Here we are only looking for service providers, not service instances.Methods in io.helidon.pico.configdriven.runtime with parameters of type ServiceProviderModifier and TypeMethodDescriptionAbstractConfiguredServiceProvider.resolve(InjectionPointInfo ipInfo, PicoServices picoServices, ServiceProvider<?> serviceProvider, boolean resolveIps) voidAbstractConfiguredServiceProvider.rootProvider(ServiceProvider<T> root) -
Uses of ServiceProvider in io.helidon.pico.maven.plugin
Method parameters in io.helidon.pico.maven.plugin with type arguments of type ServiceProviderModifier and TypeMethodDescriptionprotected StringAbstractCreatorMojo.determinePackageName(Optional<ServiceProvider<Module>> optModuleSp, Collection<TypeName> typeNames, ModuleInfoDescriptor descriptor, boolean persistIt) Determines the primary package name (which also typically doubles as the application name). -
Uses of ServiceProvider in io.helidon.pico.runtime
Classes in io.helidon.pico.runtime that implement ServiceProviderModifier and TypeClassDescriptionclassAbstract base implementation forServiceProviderBindable, which represents the basics for regular Singleton, ApplicationScoped, Provider, and ServiceProvider based managed services.Methods in io.helidon.pico.runtime that return ServiceProviderModifier and TypeMethodDescriptionstatic ServiceProvider<?>DefaultServiceBinder.toRootProvider(ServiceProvider<?> sp) Returns the root provider of the service provider passed.Methods in io.helidon.pico.runtime that return types with arguments of type ServiceProviderMethods in io.helidon.pico.runtime with parameters of type ServiceProviderModifier and TypeMethodDescriptionvoidDefaultServiceBinder.bind(ServiceProvider<?> sp) voidAbstractServiceProvider.interceptor(ServiceProvider<?> interceptor) static booleanServiceUtils.isQualifiedInjectionTarget(ServiceProvider<?> sp) Determines if the service provider is valid to receive injections.static <T> Optional<AbstractServiceProvider<T>>AbstractServiceProvider.toAbstractServiceProvider(ServiceProvider<?> sp, boolean expected) Will test and downcast the passed service provider to an instance ofAbstractServiceProvider.static Optional<ServiceProviderBindable<?>>DefaultServiceBinder.toBindableProvider(ServiceProvider<?> sp) Returns the bindable service provider for what is passed if available.static ServiceProvider<?>DefaultServiceBinder.toRootProvider(ServiceProvider<?> sp) Returns the root provider of the service provider passed.Constructors in io.helidon.pico.runtime with parameters of type ServiceProviderModifierConstructorDescriptionprotectedInterceptedMethod(I interceptedImpl, ServiceProvider<?> serviceProvider, TypeName serviceTypeName, Collection<AnnotationAndValue> serviceLevelAnnotations, Collection<Provider<Interceptor>> interceptors, TypedElementName methodInfo) The constructor.protectedInterceptedMethod(I interceptedImpl, ServiceProvider<?> serviceProvider, TypeName serviceTypeName, Collection<AnnotationAndValue> serviceLevelAnnotations, Collection<Provider<Interceptor>> interceptors, TypedElementName methodInfo, TypedElementName[] methodArgInfo) The constructor. -
Uses of ServiceProvider in io.helidon.pico.spi
Methods in io.helidon.pico.spi that return ServiceProviderModifier and TypeMethodDescriptionInjectionPlan.serviceProvider()The service provider this plan pertains to.Methods in io.helidon.pico.spi that return types with arguments of type ServiceProviderModifier and TypeMethodDescriptionList<ServiceProvider<?>>InjectionPlan.injectionPointQualifiedServiceProviders()The list of service providers that are qualified to satisfy the given injection point for this service provider.Methods in io.helidon.pico.spi with parameters of type ServiceProviderModifier and TypeMethodDescriptionInjectionResolver.resolve(InjectionPointInfo ipInfo, PicoServices picoServices, ServiceProvider<?> serviceProvider, boolean resolveIps) Attempts to resolve the injection point info for a given service provider. -
Uses of ServiceProvider in io.helidon.pico.testing
Classes in io.helidon.pico.testing that implement ServiceProviderModifier and TypeClassDescriptionclassCreates a simple reflection based service provider - for testing purposes only!Methods in io.helidon.pico.testing with parameters of type ServiceProviderModifier and TypeMethodDescriptionstatic voidPicoTestingSupport.bind(PicoServices picoServices, ServiceProvider<?> serviceProvider) Provides a means to bind a service provider into theServicesregistry.