Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for newInstance (1.16 sec)

  1. src/main/java/org/codelibs/core/xml/DocumentBuilderFactoryUtil.java

         */
        public static DocumentBuilderFactory newInstance() {
            return newInstance(false);
        }
    
        /**
         * Returns a new instance of {@link DocumentBuilderFactory}.
         *
         * @param external
         *            If {@code true}, external access is allowed.
         * @return A new instance of {@link DocumentBuilderFactory}.
         */
        public static DocumentBuilderFactory newInstance(final boolean external) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  2. compat/maven-builder-support/src/test/java/org/apache/maven/building/ProblemCollectorFactoryTest.java

    class ProblemCollectorFactoryTest {
    
        @Test
        void testNewInstance() {
            ProblemCollector collector1 = ProblemCollectorFactory.newInstance(null);
    
            Problem problem = new DefaultProblem("MESSAGE1", null, null, -1, -1, null);
            ProblemCollector collector2 = ProblemCollectorFactory.newInstance(Collections.singletonList(problem));
    
            assertNotSame(collector1, collector2);
            assertEquals(0, collector1.getProblems().size());
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sun Jul 20 20:19:43 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/lang/ConstructorUtil.java

         * @see Constructor#newInstance(Object[])
         */
        public static <T> T newInstance(final Constructor<T> constructor, final Object... args)
                throws InstantiationRuntimeException, IllegalAccessRuntimeException {
            assertArgumentNotNull("constructor", constructor);
    
            try {
                return constructor.newInstance(args);
            } catch (final InstantiationException e) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/xml/SAXParserFactoryUtil.java

        /**
         * Creates a new instance of {@link SAXParserFactory}.
         *
         * @return A new instance of {@link SAXParserFactory}.
         */
        public static SAXParserFactory newInstance() {
            final SAXParserFactory factory = SAXParserFactory.newInstance();
            try {
                factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
                factory.setFeature("http://xml.org/sax/features/external-general-entities", false);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java

            assertThat(ctor.getParameterTypes().length, is(0));
            assertThat(ctor.isPublic(), is(true));
            final MyBean myBean = ctor.newInstance();
            assertThat(myBean, is(notNullValue()));
            assertThat(myBean.s, is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @SuppressWarnings("rawtypes")
        @Test
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/spnego/SpnegoConstantsTest.java

        }
    
        @Test
        @DisplayName("Interface cannot be instantiated")
        @SuppressWarnings("deprecation") // Using Class#newInstance for explicit InstantiationException
        void cannotInstantiateInterface() {
            assertThrows(InstantiationException.class, () -> SpnegoConstants.class.newInstance(), "Interfaces cannot be instantiated");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/xml/SchemaFactoryUtil.java

         * @return a {@link SchemaFactory} for W3C XML Schema
         */
        public static SchemaFactory newW3cXmlSchemaFactory(final boolean external) {
            final SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
            if (!external) {
                disableExternalResources(schemaFactory);
            }
            return schemaFactory;
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

        val callbackHandler = ConsoleCallbackHandler
    
        val builderList: List<KeyStore.Builder> =
          listOf(
            KeyStore.Builder.newInstance("PKCS11", null, KeyStore.CallbackHandlerProtection(callbackHandler)),
            // Example if you want to combine multiple keystore types
            // KeyStore.Builder.newInstance("PKCS12", null, File("keystore.p12"), PasswordProtection("rosebud".toCharArray()))
          )
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/http/Handler.java

                                handlerClass = ClassLoader.getSystemClassLoader().loadClass(className);
                            }
                            handler = (URLStreamHandler) handlerClass.newInstance();
                            break;
                        } catch (final Exception ex) {}
                    }
                }
                if (handler == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
Back to top