Class CardResourceProfileConfigurator
java.lang.Object
org.eclipse.keyple.core.service.resource.CardResourceProfileConfigurator
Configurator of a card resource profile.
- Since:
- 2.0.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder
(String profileName, CardResourceProfileExtension cardResourceProfileExtension) Gets the configurator's builder to use in order to create a new instance of a card resource profile with the provided name and a card resource profile extension to handle specific card operations to be performed at allocation time.
-
Method Details
-
builder
public static CardResourceProfileConfigurator.Builder builder(String profileName, CardResourceProfileExtension cardResourceProfileExtension) Gets the configurator's builder to use in order to create a new instance of a card resource profile with the provided name and a card resource profile extension to handle specific card operations to be performed at allocation time.- Parameters:
profileName
- The name of the profile (must be unique).cardResourceProfileExtension
- The associated specific extension able to select a card.- Returns:
- A not null reference.
- Throws:
IllegalArgumentException
- If the name or the card profile extension is null or empty.IllegalStateException
- If the name is already in use (performed by the methodCardResourceServiceConfigurator.configure()
).- Since:
- 2.0.0
-