Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,302 for bean (0.19 sec)

  1. 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).
     *
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  2. 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();
    
        /**
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/util/BeanUtil.java

                dest.put(destPropertyName, convertedValue);
            }
        }
    
        /**
         * コピー元のBeanを新しいBeanのインスタンスにコピーして返します。
         *
         * @param <T> コピー先となるBeanの型
         * @param src コピー元のBean。{@literal null}であってはいけません
         * @param destClass コピー先となるBeanの型。{@literal null}であってはいけません
         * @return コピーされた新しいBean
         */
        public static <T> T copyBeanToNewBean(final Object src, final Class<T> destClass) {
    Java
    - Registered: Fri Apr 19 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  4. maven-core/src/test/java/org/apache/maven/session/scope/SessionScopeProxyTest.java

            MySingletonBean bean = container.lookup(MySingletonBean.class);
            assertNotNull(bean);
            assertNotNull(bean.anotherBean);
            assertSame(bean.anotherBean.getClass(), AnotherBean.class);
            assertNotNull(bean.myBean);
            assertNotSame(bean.myBean.getClass(), MySessionScopedBean.class);
    
            assertThrows(OutOfScopeException.class, () -> bean.myBean.getSession());
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Mon Feb 05 09:45:47 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. 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
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

         */
        @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(new Integer(1000)));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Java
    - Registered: Fri Apr 19 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 34.5K bytes
    - Viewed (0)
  7. 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
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  8. 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
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/configuration/DefaultBeanConfigurationRequest.java

        private BeanConfigurationPathTranslator pathTranslator;
    
        public Object getBean() {
            return bean;
        }
    
        public DefaultBeanConfigurationRequest setBean(Object bean) {
            this.bean = bean;
            return this;
        }
    
        public Object getConfiguration() {
            return configuration;
        }
    
        public String getConfigurationElement() {
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/TempFileCreator.java

          int jellyBean =
              (int) Class.forName("android.os.Build$VERSION_CODES").getField("JELLY_BEAN").get(null);
          /*
           * I assume that this check can't fail because JELLY_BEAN will be present only if we're
           * running under Jelly Bean or higher. But it seems safest to check.
           */
          if (version < jellyBean) {
            return new ThrowingCreator();
          }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 12.5K bytes
    - Viewed (0)
Back to top