Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 143 for newInstance (0.07 sec)

  1. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

        // exercise some classes from the parallel ClassLoader.
        AtomicReference<Object> sepFrqA =
            new AtomicReference<Object>(sepFrqC.getDeclaredConstructor().newInstance());
        Class<?> sepFwrC = sepLoader.loadClass(MyFinalizableWeakReference.class.getName());
        Constructor<?> sepFwrCons = sepFwrC.getConstructor(Object.class, sepFrqC);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/beans/impl/ConstructorDescImpl.java

                return null;
            }
            return pcd.getRawClass();
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public <T> T newInstance(final Object... args) {
            return (T) ConstructorUtil.newInstance(constructor, args);
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/http/Handler.java

                                handlerClass = ClassLoader.getSystemClassLoader(
                                        ).loadClass(className);
                            }
                            handler = (URLStreamHandler) handlerClass.newInstance();
                            break;
                        } catch (Exception ex) { }
                    }
                }
                if (handler == null) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 6.1K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/PropertyProfileActivatorTest.java

            props.setProperty(key, value);
            return props;
        }
    
        @Test
        void testNullSafe() throws Exception {
            Profile p = Profile.newInstance();
    
            assertActivation(false, p, newContext(null, null));
    
            p = p.withActivation(Activation.newInstance());
    
            assertActivation(false, p, newContext(null, null));
        }
    
        @Test
        void testWithNameOnly_UserProperty() throws Exception {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/ReserializingTestSetGenerator.java

        implements TestSetGenerator<E> {
    
      ReserializingTestSetGenerator(TestSetGenerator<E> delegate) {
        super(delegate);
      }
    
      public static <E> TestSetGenerator<E> newInstance(TestSetGenerator<E> delegate) {
        return new ReserializingTestSetGenerator<>(delegate);
      }
    
      @Override
      public Set<E> create(Object... elements) {
        return (Set<E>) super.create(elements);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelCacheFactory.java

    @Named
    @Deprecated(since = "4.0.0")
    public class DefaultModelCacheFactory implements ModelCacheFactory {
        @Override
        public ModelCache createCache(RepositorySystemSession session) {
            return DefaultModelCache.newInstance(session);
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileInjector.java

        // the model used as the key.  So we use a dummy model as a placeholder to indicate that
        // we want to store the model used as they key.
        private static final Model KEY = Model.newInstance();
    
        private ProfileModelMerger merger = new ProfileModelMerger();
    
        @Override
        public void injectProfile(
                org.apache.maven.model.Model model,
                org.apache.maven.model.Profile profile,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. architecture/standards/0006-use-of-provider-apis-in-gradle.md

    }
    abstract class DefaultNestedType implements NestedType {
        ...
    }
    
    class Example {
        private final NestedType nested
        Example(ObjectFactory objects) {
           this.nested = objects.newInstance(DefaultNestedType.class)
        }
    
        @Nested
        NestedType getNestedProperty() {
            return nested;
        }
    }
    ```
    
    You should prefer to use managed types when possible. 
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Oct 15 20:00:57 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. compat/maven-settings-builder/src/test/java/org/apache/maven/settings/building/DefaultSettingsBuilderFactoryTest.java

        }
    
        @Test
        void testCompleteWiring() throws Exception {
            SettingsBuilder builder = new DefaultSettingsBuilderFactory().newInstance();
            assertNotNull(builder);
    
            DefaultSettingsBuildingRequest request = new DefaultSettingsBuildingRequest();
            request.setSystemProperties(System.getProperties());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ObjectArrays.java

       *
       * @param type the component type
       * @param length the length of the new array
       */
      @GwtIncompatible // Array.newInstance(Class, int)
      @SuppressWarnings("unchecked")
      public static <T extends @Nullable Object> T[] newArray(Class<@NonNull T> type, int length) {
        return (T[]) Array.newInstance(type, length);
      }
    
      /**
       * Returns a new array of the given length with the same type as a reference array.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top