Interface ModuleProvideInfo
public sealed interface ModuleProvideInfo
Models a single "provides" declaration in the 
ModuleAttribute.- See Java Virtual Machine Specification:
- 
4.7.25 The ModuleAttribute
- Since:
- 24
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionstatic ModuleProvideInfoof(ClassEntry provides, ClassEntry... providesWith) Returns a service provision description.static ModuleProvideInfoof(ClassEntry provides, List<ClassEntry> providesWith) Returns a service provision description.static ModuleProvideInfoReturns a service provision description.static ModuleProvideInfoReturns a service provision description.provides()Returns the service interface representing the provided service.Returns the classes providing the service implementation.
- 
Method Details- 
providesClassEntry provides()Returns the service interface representing the provided service.- Returns:
- the service interface representing the provided service
- See Also:
 
- 
providesWithList<ClassEntry> providesWith()Returns the classes providing the service implementation. The list should not be empty.- Returns:
- the classes providing the service implementation
- See Also:
 
- 
ofReturns a service provision description.- Parameters:
- provides- the service class interface
- providesWith- the service class implementations, must not be empty
- Returns:
- a service provision description
 
- 
ofReturns a service provision description.- Parameters:
- provides- the service class interface
- providesWith- the service class implementations, must not be empty
- Returns:
- a service provision description
 
- 
ofReturns a service provision description.- Parameters:
- provides- the service class interface
- providesWith- the service class implementations, must not be empty
- Returns:
- a service provision description
- Throws:
- IllegalArgumentException- if- providesor any of- providesWithrepresents a primitive type
 
- 
ofReturns a service provision description.- Parameters:
- provides- the service class interface
- providesWith- the service class implementations, must not be empty
- Returns:
- a service provision description
- Throws:
- IllegalArgumentException- if- providesor any of- providesWithrepresents a primitive type
 
 
-