Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for TypeRegistry (0.12 sec)

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

    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     * Access to {@link Type} registry.
     *
     * @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.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java

        private final TypeRegistry typeRegistry;
    
        private final ConcurrentHashMap<String, ArtifactHandler> allHandlers;
    
        @Inject
        public DefaultArtifactHandlerManager(TypeRegistry typeRegistry) {
            this.typeRegistry = requireNonNull(typeRegistry, "null typeRegistry");
            this.allHandlers = new ConcurrentHashMap<>();
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/aether/TypeRegistryAdapter.java

            this.typeRegistry = requireNonNull(typeRegistry, "typeRegistry");
        }
    
        @Override
        public ArtifactType get(String typeId) {
            Type type = typeRegistry.require(typeId);
            if (type instanceof ArtifactType) {
                return (ArtifactType) type;
            }
            if (type != null) {
                return new DefaultType(
                        type.id(),
                        type.getLanguage(),
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

        private final SettingsDecrypter settingsDecrypter;
    
        private final EventSpyDispatcher eventSpyDispatcher;
    
        private final RuntimeInformation runtimeInformation;
    
        private final TypeRegistry typeRegistry;
    
        private final VersionScheme versionScheme;
    
        private final Map<String, MavenExecutionRequestExtender> requestExtenders;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPackagingRegistry.java

        private final Lookup lookup;
    
        private final TypeRegistry typeRegistry;
    
        @Inject
        public DefaultPackagingRegistry(Lookup lookup, TypeRegistry typeRegistry, List<PackagingProvider> providers) {
            super(providers);
            this.lookup = lookup;
            this.typeRegistry = typeRegistry;
        }
    
        @Override
        public Optional<Packaging> lookup(String id) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTypeRegistry.java

    import org.apache.maven.api.JavaPathType;
    import org.apache.maven.api.Type;
    import org.apache.maven.api.annotations.Nonnull;
    import org.apache.maven.api.services.LanguageRegistry;
    import org.apache.maven.api.services.TypeRegistry;
    import org.apache.maven.api.spi.TypeProvider;
    import org.apache.maven.artifact.handler.ArtifactHandler;
    import org.apache.maven.artifact.handler.manager.LegacyArtifactHandlerManager;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/ProtoSession.java

            static PackagingRegistry newPackagingRegistry(TypeRegistry typeRegistry) {
                return id -> Optional.of(new DumbPackaging(id, typeRegistry.require(id), Map.of()));
            }
    
            @Provides
            @SuppressWarnings("unused")
            static TypeRegistry newTypeRegistry(List<TypeProvider> providers) {
                return new TypeRegistry() {
                    @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

        /**
         * Obtain the {@link Type} from the specified {@code id}.
         * <p>
         * Shortcut for {@code getService(TypeRegistry.class).require(...)}.
         *
         * @see org.apache.maven.api.services.TypeRegistry#require(String)
         */
        @Nonnull
        Type requireType(@Nonnull String id);
    
        /**
         * Obtain the {@link Language} from the specified {@code id}.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 16:43:07 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top