Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 248 for Bean (0.02 sec)

  1. 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();
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jul 17 07:40:49 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  2. impl/maven-core/src/test/java/org/apache/maven/configuration/DefaultBeanConfiguratorPathTest.java

            SomeBean bean = new SomeBean();
    
            Xpp3Dom config = toConfig("<file>test</file>");
    
            DefaultBeanConfigurationRequest request = new DefaultBeanConfigurationRequest();
            request.setBean(bean).setConfiguration(config);
    
            configurator.configureBean(request);
    
            assertEquals(Paths.get("test"), bean.file);
        }
    
        @Test
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Mar 25 09:45:07 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  3. 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() : "";
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 16:01:38 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/configuration/BeanConfigurationValuePreprocessor.java

    package org.apache.maven.configuration;
    
    /**
     * Preprocesses a value from a bean configuration before the bean configurator unmarshals it into a bean property. A
     * common use case for such preprocessing is the evaluation of variables within the configuration value.
     *
     */
    public interface BeanConfigurationValuePreprocessor {
    
        /**
         * Preprocesses the specified bean configuration value. The optional type provided to this method is a hint (not a
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/base/FessBaseAction.java

            sessionManager.errors().saveMessages(messages);
        }
    
        /**
         * Copies properties from source bean to destination bean.
         * This is a utility method that wraps BeanUtil.copyBeanToBean with custom options.
         *
         * @param src the source bean object
         * @param dest the destination bean object
         * @param option a consumer function to configure copy options
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 15K bytes
    - Viewed (0)
  6. 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);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Nov 12 14:59:46 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  7. 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
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Mar 25 09:45:07 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  8. 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).
     *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. 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.
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  10. 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
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sun Aug 31 02:56:02 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top