Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for ExtensibleEnumRegistry (0.14 seconds)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/ExtensibleEnumRegistry.java

     * custom enum values that have been registered through SPI providers.
     *
     * @param <T> the specific type of extensible enum managed by this registry
     * @since 4.0.0
     */
    public interface ExtensibleEnumRegistry<T extends ExtensibleEnum> extends Service {
        @Nonnull
        Optional<T> lookup(@Nonnull String id);
    
        @Nonnull
        default T require(@Nonnull String id) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Apr 03 13:33:59 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/LifecycleRegistry.java

    import java.util.List;
    import java.util.stream.Stream;
    import java.util.stream.StreamSupport;
    
    import org.apache.maven.api.Lifecycle;
    
    public interface LifecycleRegistry extends ExtensibleEnumRegistry<Lifecycle>, Iterable<Lifecycle> {
    
        default Stream<Lifecycle> stream() {
            return StreamSupport.stream(spliterator(), false);
        }
    
        List<String> computePhases(Lifecycle lifecycle);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Aug 29 05:48:54 GMT 2024
    - 1.2K bytes
    - Click Count (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/TypeRegistry.java

     * provided by Maven and custom types registered through SPI provider implementations.
     *
     * @since 4.0.0
     */
    @Experimental
    public interface TypeRegistry extends ExtensibleEnumRegistry<Type> {
    
        /**
         * Obtain the {@link Type} from the specified {@code id}.
         * If no type is known for {@code id}, the registry will
         * create a custom {@code Type} for it.
         *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Apr 03 13:33:59 GMT 2025
    - 1.7K bytes
    - Click Count (0)
Back to Top