Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for ModelIdentifier (0.35 sec)

  1. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/protocol/ModelIdentifier.java

     * <p>Provider compatibility: This interface is uses by all provider versions from 1.6-rc-1.</p>
     *
     * @since 1.6-rc-1
     */
    public interface ModelIdentifier extends InternalProtocolInterface {
        /**
         * The name of the null model.
         */
        final String NULL_MODEL = Void.class.getName();
    
        /**
         * The name of the model.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/DefaultBuildController.java

        public BuildResult<?> getModel(Object target, ModelIdentifier modelIdentifier) throws BuildExceptionVersion1, InternalUnsupportedModelException {
            return getModel(target, modelIdentifier, null);
        }
    
        /**
         * This is used by consumers 4.4 and later
         */
        @Override
        public BuildResult<?> getModel(@Nullable Object target, ModelIdentifier modelIdentifier, Object parameter)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 08:56:14 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/connection/ParameterAwareBuildControllerAdapter.java

            this.buildController = buildController;
        }
    
        @Override
        protected BuildResult<?> getModel(@Nullable Object target, ModelIdentifier modelIdentifier, @Nullable Object parameter) throws InternalUnsupportedModelException {
            return buildController.getModel(target, modelIdentifier, parameter);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 08:15:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/protocol/InternalBuildController.java

         * @param modelIdentifier The identifier of the model to build.
         * @throws BuildExceptionVersion1 On build failure.
         * @throws InternalUnsupportedModelException When the requested model is not supported.
         * @since 1.8-rc-1
         * @deprecated 4.4. Use {@link InternalBuildControllerVersion2#getModel(Object, ModelIdentifier, Object)} instead.
         */
        @Deprecated
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/protocol/InternalBuildControllerVersion2.java

         * @throws InternalUnsupportedModelException When the requested model is not supported.
         * @since 4.4
         */
        BuildResult<?> getModel(Object target, ModelIdentifier modelIdentifier, Object parameter) throws BuildExceptionVersion1,
            InternalUnsupportedModelException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 19:46:37 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/versioning/ModelMapping.java

            map.put(GradleBuild.class, "1.8");
            map.put(ProjectPublications.class, "1.12");
        }
    
        public ModelIdentifier getModelIdentifierFromModelType(final Class<?> modelType) {
            if (modelType.equals(Void.class)) {
                return new DefaultModelIdentifier(ModelIdentifier.NULL_MODEL);
            }
            return new DefaultModelIdentifier(modelType.getName());
        }
    
        @Nullable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/connection/BuildControllerWithoutParameterSupport.java

        }
    
        @Override
        protected BuildResult<?> getModel(@Nullable Object target, ModelIdentifier modelIdentifier, @Nullable Object parameter) throws InternalUnsupportedModelException {
            return buildController.getModel(target, modelIdentifier);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 08:15:25 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/connection/CancellableModelBuilderBackedModelProducer.java

                throw Exceptions.unsupportedModel(type, versionDetails.getVersion());
            }
            final ModelIdentifier modelIdentifier = modelMapping.getModelIdentifierFromModelType(type);
            BuildResult<?> result;
            try {
                result = builder.getModel(modelIdentifier, new BuildCancellationTokenAdapter(operationParameters.getCancellationToken()), operationParameters);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/connection/UnparameterizedBuildController.java

            ModelIdentifier modelIdentifier = modelMapping.getModelIdentifierFromModelType(modelType);
            Object originalTarget = target == null ? null : adapter.unpack(target);
    
            P parameter = initializeParameter(parameterType, parameterInitializer);
    
            BuildResult<?> result;
            try {
                result = getModel(originalTarget, modelIdentifier, parameter);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 08:15:25 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/connection/CancellableConsumerConnectionTest.groovy

            def modelIdentifier = Stub(ModelIdentifier)
            def builder = Mock(ViewBuilder)
    
            when:
            def result = connection.run(Void.class, parameters)
    
            then:
            result == 'the result'
    
            and:
            1 * modelMapping.getModelIdentifierFromModelType(Void) >> modelIdentifier
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 5.8K bytes
    - Viewed (0)
Back to top