Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for NewInstance (0.16 sec)

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

         *
         * @return 新しい {@link DocumentBuilderFactory}のインスタンス
         */
        public static DocumentBuilderFactory newInstance() {
            return newInstance(false);
        }
    
        public static DocumentBuilderFactory newInstance(final boolean external) {
            final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            if (!external) {
                try {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleDocumentationExtension.java

        public GradleDocumentationExtension(ObjectFactory objects) {
            releaseNotes = objects.newInstance(ReleaseNotes.class);
            userManual = objects.newInstance(UserManual.class);
            dslReference = objects.newInstance(DslReference.class);
            javadocs = objects.newInstance(Javadocs.class);
            kotlinDslReference = objects.newInstance(KotlinDslReference.class);
        }
    
        /**
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Aug 20 14:11:17 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/XIncludeAwareXmlProvider.groovy

            root.documentElement
        }
    
        Node emptyDoc() {
            root = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument()
        }
    
        void write(File destFile, boolean indent = false) {
            destFile.withOutputStream { OutputStream stream ->
                TransformerFactory factory = TransformerFactory.newInstance()
                Transformer transformer = factory.newTransformer()
                if (indent) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  4. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java

        }
    
        @Test
        void testOneProblem() {
            ProblemCollector problemCollector = ProblemCollectorFactory.newInstance(null);
            problemCollector.add(Problem.Severity.ERROR, "MESSAGE", 3, 5, new Exception());
            ToolchainsBuildingException e = new ToolchainsBuildingException(problemCollector.getProblems());
            assertEquals(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. compat/maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java

        }
    
        @Test
        void testV4ModelPriority() {
            Model m = model.withBuild(Build.newInstance()
                    .withPlugins(Collections.singleton(Plugin.newInstance()
                            .withExecutions(Collections.singleton(
                                    PluginExecution.newInstance().withPriority(5))))));
            assertEquals("4.0.0", new MavenModelVersion().getModelVersion(m));
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. 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 Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/xml/SchemaFactoryUtil.java

            return newW3cXmlSchemaFactory(false);
        }
    
        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 Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/xml/SAXParserFactoryUtil.java

        /**
         * {@link SAXParserFactory}の新しいインスタンスを作成します。
         *
         * @return {@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 Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. 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 Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top