Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for Seed (0.11 sec)

  1. maven-core/src/test/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeTest.java

            MojoExecutionScope scope = new MojoExecutionScope();
    
            scope.enter();
    
            Object o1 = new Object();
            scope.seed(Object.class, o1);
            assertSame(o1, scope.scope(Key.get(Object.class), null).get());
    
            scope.enter();
            Object o2 = new Object();
            scope.seed(Object.class, o2);
            assertSame(o2, scope.scope(Key.get(Object.class), null).get());
    
            scope.exit();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sat Apr 15 17:24:20 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScope.java

                throw new IllegalStateException();
            }
            values.remove(0);
        }
    
        public <T> void seed(Class<T> clazz, Provider<T> value) {
            getScopeState().seed(clazz, value);
        }
    
        public <T> void seed(Class<T> clazz, final T value) {
            seed(clazz, (Provider<T>) () -> value);
        }
    
        public <T> Provider<T> scope(final Key<T> key, final Provider<T> unscoped) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java

            }
            stack.removeFirst();
            if (stack.isEmpty()) {
                values.remove();
            }
        }
    
        public <T> void seed(Class<T> clazz, Provider<T> value) {
            getScopeState().seeded.put(Key.get(clazz), value);
        }
    
        public <T> void seed(Class<T> clazz, final T value) {
            getScopeState().seeded.put(Key.get(clazz), Providers.of(value));
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. maven-core/src/test/java/org/apache/maven/session/scope/SessionScopeProxyTest.java

            assertNotSame(bean.myBean.getClass(), MySessionScopedBean.class);
    
            assertThrows(OutOfScopeException.class, () -> bean.myBean.getSession());
    
            sessionScope.enter();
            sessionScope.seed(Session.class, this.session);
            assertNotNull(bean.myBean.getSession());
            assertNotNull(bean.myBean.getAnotherBean());
            assertSame(bean.myBean.getAnotherBean().getClass(), AnotherBean.class);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Apr 23 12:52:20 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. maven-compat/src/test/java/org/apache/maven/artifact/installer/ArtifactInstallerTest.java

        protected String component() {
            return "installer";
        }
    
        @Test
        void testArtifactInstallation() throws Exception {
            sessionScope.enter();
            try {
                sessionScope.seed(MavenSession.class, mock(MavenSession.class));
    
                String artifactBasedir = new File(getBasedir(), "src/test/resources/artifact-install").getAbsolutePath();
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

        protected String component() {
            return "deployer";
        }
    
        @Test
        void testArtifactInstallation() throws Exception {
            sessionScope.enter();
            try {
                sessionScope.seed(MavenSession.class, mock(MavenSession.class));
    
                String artifactBasedir = new File(getBasedir(), "src/test/resources/artifact-install").getAbsolutePath();
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. maven-compat/src/main/java/org/apache/maven/project/MavenProjectBuilder.java

                throws ProjectBuildingException;
    
        // TODO this is only to provide a project for plugins that don't need a project to execute but need some
        // of the values from a MavenProject. Ideally this should be something internal and nothing outside Maven
        // would ever need this so it should not be exposed in a public API
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Dec 26 15:12:32 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/LocalRepositoryManager.java

    /**
     *
     * @since 4.0.0
     */
    @Experimental
    public interface LocalRepositoryManager extends Service {
    
        /**
         * Gets the relative path for a locally installed artifact.
         * Note that the artifact need not actually exist yet at
         * the returned location, the path merely indicates where
         * the artifact would eventually be stored.
         *
         * @param session The session to use, must not be {@code null}.
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Dec 08 09:10:49 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  9. maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProblem.java

         * @param columnNumber The one-based index of the column containing the error or {@code -1} if unknown.
         * @param exception The exception that caused this problem, may be {@code null}.
         */
        // mkleint: does this need to be public?
        public DefaultModelProblem(
                String message,
                Severity severity,
                Version version,
                Model source,
                int lineNumber,
                int columnNumber,
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Feb 01 16:25:04 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelProblem.java

         * @param columnNumber The one-based index of the column containing the error or {@code -1} if unknown.
         * @param exception The exception that caused this problem, may be {@code null}.
         */
        // mkleint: does this need to be public?
        public DefaultModelProblem(
                String message,
                Severity severity,
                Version version,
                Model source,
                int lineNumber,
                int columnNumber,
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top