Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ExtensibleEnum (0.17 sec)

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

     *
     * Implementation must have {@code equals()} and {@code hashCode()} implemented, so implementations of this interface
     * can be used as keys.
     *
     * @since 4.0.0
     */
    @Experimental
    public interface ExtensibleEnum {
    
        /**
         * The {@code id} uniquely represents a value for this extensible enum.
         * This id should be used to compute the equality and hash code for the instance.
         *
         * @return the id
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/ExtensibleEnumRegistry.java

     * under the License.
     */
    package org.apache.maven.api.services;
    
    import java.util.Optional;
    
    import org.apache.maven.api.ExtensibleEnum;
    import org.apache.maven.api.Service;
    import org.apache.maven.api.annotations.Nonnull;
    
    public interface ExtensibleEnumRegistry<T extends ExtensibleEnum> extends Service {
        @Nonnull
        Optional<T> lookup(@Nonnull String id);
    
        @Nonnull
        default T require(@Nonnull String id) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 23:54:53 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  3. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ExtensibleEnumProvider.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.api.spi;
    
    import java.util.Collection;
    
    import org.apache.maven.api.ExtensibleEnum;
    import org.apache.maven.api.annotations.Consumer;
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     * An SPI interface to extend Maven with a new enum value.
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 23:54:53 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/Lifecycle.java

    import org.apache.maven.api.annotations.Immutable;
    import org.apache.maven.api.model.Plugin;
    
    /**
     * Lifecycle definition
     *
     * @since 4.0.0
     */
    @Experimental
    @Immutable
    public interface Lifecycle extends ExtensibleEnum {
    
        String CLEAN = "clean";
    
        String DEFAULT = "default";
    
        String SITE = "site";
    
        String WRAPPER = "wrapper";
    
        /**
         * Name or identifier of this lifecycle.
         *
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/ExtensibleEnumRegistries.java

    import java.util.List;
    import java.util.Locale;
    import java.util.Map;
    import java.util.Optional;
    import java.util.stream.Collectors;
    import java.util.stream.Stream;
    
    import org.apache.maven.api.ExtensibleEnum;
    import org.apache.maven.api.Language;
    import org.apache.maven.api.PathScope;
    import org.apache.maven.api.ProjectScope;
    import org.apache.maven.api.di.Inject;
    import org.apache.maven.api.di.Named;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/Packaging.java

     *   the packaging are currently defined by Maven 3 {@code Provider<LifecycleMapping>}
     *
     * @since 4.0.0
     */
    @Experimental
    @Immutable
    public interface Packaging extends ExtensibleEnum {
        /**
         * The packaging id.
         */
        @Nonnull
        String id();
    
        /**
         * The language of this packaging.
         */
        @Nonnull
        default Language language() {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/PathScope.java

     * can be used as keys.
     *
     * @since 4.0.0
     * @see org.apache.maven.api.services.DependencyResolver
     * @see DependencyScope
     */
    @Experimental
    @Immutable
    public interface PathScope extends ExtensibleEnum {
    
        // TODO: what if I simply want all dependencies ?
        @Nonnull
        ProjectScope projectScope();
    
        @Nonnull
        Set<DependencyScope> dependencyScopes();
    
        PathScope MAIN_COMPILE = pathScope(
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/Type.java

     * {@code sources} classifier. The artifact and its dependencies should be added
     * to the build path.
     *
     * @since 4.0.0
     */
    @Experimental
    @Immutable
    public interface Type extends ExtensibleEnum {
        /**
         * Artifact type name for a POM file.
         */
        String POM = "pom";
    
        /**
         * Artifact type name for a BOM file.
         */
        String BOM = "bom";
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Mar 29 09:32:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
Back to top