Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 280 for Mean (0.02 seconds)

  1. impl/maven-core/src/test/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelperTest.java

        }
    
        @Test
        void testSetPropertyWithField() throws Exception {
            TestBean bean = new TestBean();
            PlexusConfiguration config = new XmlPlexusConfiguration("test");
            config.setValue("fieldValue");
    
            when(evaluator.evaluate("fieldValue")).thenReturn("fieldValue");
    
            helper.setProperty(bean, "directField", String.class, config);
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Nov 12 14:59:46 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  2. impl/maven-core/src/test/java/org/apache/maven/configuration/DefaultBeanConfiguratorTest.java

            SomeBean bean = new SomeBean();
    
            Xpp3Dom config = toConfig("<file>test</file>");
    
            DefaultBeanConfigurationRequest request = new DefaultBeanConfigurationRequest();
            request.setBean(bean).setConfiguration(config);
    
            configurator.configureBean(request);
    
            assertEquals(new File("test"), bean.file);
        }
    
        @Test
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Mar 25 09:45:07 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  3. README.md

    nameProperty.setValue(bean, "John Doe");
    
    // Bean copying with flexible options
    BeanUtil.copyBeanToBean(source, destination);
    BeanUtil.copyBeanToBean(source, destination, options -> 
        options.exclude("password", "internalId"));
    
    // Convert between beans and maps
    Map<String, Object> map = BeanUtil.copyBeanToNewMap(bean);
    MyBean newBean = BeanUtil.copyMapToNewBean(map, MyBean.class);
    ```
    
    ### Type Conversion
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sun Aug 31 02:56:02 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/configuration/DefaultBeanConfigurationRequest.java

        private BeanConfigurationPathTranslator pathTranslator;
    
        @Override
        public Object getBean() {
            return bean;
        }
    
        @Override
        public DefaultBeanConfigurationRequest setBean(Object bean) {
            this.bean = bean;
            return this;
        }
    
        @Override
        public Object getConfiguration() {
            return configuration;
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  5. impl/maven-core/src/test/java/org/apache/maven/configuration/internal/CompositeBeanHelperPerformanceTest.java

            originalHelper.setProperty(bean, "description", String.class, descConfig);
    
            PlexusConfiguration timeoutConfig = new XmlPlexusConfiguration("timeout");
            timeoutConfig.setValue("123");
            originalHelper.setProperty(bean, "timeout", Long.class, timeoutConfig);
        }
    
        @Benchmark
        public void benchmarkOptimizedHelper() throws Exception {
            RealisticTestBean bean = new RealisticTestBean();
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Jul 17 07:40:49 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurator.java

    /**
     * Unmarshals some textual configuration from the POM or similar into the properties of a bean. This component works
     * similar to the way Maven configures plugins from the POM, i.e. some configuration like {@code <param>value</param>}
     * is mapped to an equally named property of the bean and converted. The properties of the bean are supposed to either
     * have a public setter or be backed by an equally named field (of any visibility).
     *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/core/beans/util/BeanUtil.java

            }
        }
    
        /**
         * Copies the source Bean to a new instance of the destination Bean and returns it.
         *
         * @param <T> The type of the destination Bean.
         * @param src The source Bean. Must not be {@literal null}.
         * @param destClass The type of the destination Bean. Must not be {@literal null}.
         * @return The newly copied Bean.
         */
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 23.5K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationRequest.java

    /**
     * A request to configure a bean from some configuration in the POM or similar.
     *
     */
    public interface BeanConfigurationRequest {
    
        /**
         * Gets the bean to configure. Eventually, a valid request must have a bean set.
         *
         * @return The bean to configure, or {@code null} if none.
         */
        Object getBean();
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4.9K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java

                    }
                    for (var bean : locator.get().locate(toGuiceKey(valueType))) {
                        if (isPlexusBean(bean)) {
                            Binding<?> b = new BindingToBeanEntry<>(valueType)
                                    .toBeanEntry(bean)
                                    .prioritize(bean.getRank());
                            String name = bean.getKey() instanceof com.google.inject.name.Named n ? n.value() : "";
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 16:01:38 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testCopyBeanToBean_converter() throws Exception {
            final Bean bean = new Bean();
            bean.aaa = "1,000";
            final Bean2 bean2 = new Bean2();
            BeanUtil.copyBeanToBean(bean, bean2, converter(new NumberConverter("#,##0")));
            assertThat(bean2.aaa, is(Integer.valueOf(1000)));
        }
    
        /**
         * @throws Exception
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Fri Jun 20 13:40:57 GMT 2025
    - 34.5K bytes
    - Click Count (0)
Back to Top