This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (Method method : clazz.getDeclaredMethods()) { | |
if (method != null) { | |
try { | |
clazz.getMethod(method.getName(), method.getParameterTypes()); | |
} catch (NoSuchMethodException e) { | |
logger.warn("non-public method: " + method.getDeclaringClass().getName() + "." + method.getName() + "()"); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git diff | |
diff --git a/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ResourceMethodRegistry.java b/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ResourceMethodRegistry.java | |
index 2106862..6ab27a8 100644 | |
--- a/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ResourceMethodRegistry.java | |
+++ b/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ResourceMethodRegistry.java | |
@@ -5,16 +5,14 @@ import org.jboss.resteasy.plugins.server.resourcefactory.JndiResourceFactory; | |
import org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory; | |
import org.jboss.resteasy.plugins.server.resourcefactory.SingletonResource; | |
import org.jboss.resteasy.specimpl.UriBuilderImpl; | |
-import org.jboss.resteasy.spi.HttpRequest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ResourceMethodRegistry.java b/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ResourceMethodRegistry.java | |
index 2106862..bf32ea0 100644 | |
--- a/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ResourceMethodRegistry.java | |
+++ b/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ResourceMethodRegistry.java | |
@@ -1,20 +1,19 @@ | |
package org.jboss.resteasy.core; | |
import org.jboss.resteasy.core.registry.RootSegment; | |
+import org.jboss.resteasy.logging.Logger; | |
import org.jboss.resteasy.plugins.server.resourcefactory.JndiResourceFactory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 方法 1: 使用 .class */ | |
Class c = String[].class; | |
/* 方法 2: 使用实例的getClass()方法 */ | |
c = new String[1].getClass(); | |
/* 方法 3: 使用 Class.forName */ | |
c = Class.forName("[Ljava.lang.String;"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Two different startup procedure | |
The one is to use ConfigurationBootstrap. | |
The other one is to use javax.ws.rs.Application as servlet name. | |
TODO: add more informations/code details on it. | |
# Startup Procedure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MaxInteger { | |
public static void main(String[] args) { | |
System.out.println(Integer.MAX_VALUE); | |
System.out.println(Integer.MIN_VALUE); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Mon Jul 02 2012 - Weinan Li <[email protected]> - 0.1 | |
* - Initial version | |
*/ | |
/* | |
* include printf() | |
* and definitions of NULL | |
*/ | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Mon Jul 02 2012 - Weinan Li <[email protected]> - 0.1 | |
* - Initial version | |
*/ | |
/* | |
* include printf() | |
* and definitions of NULL | |
*/ | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package generated; | |
import javax.xml.bind.annotation.XmlAccessType; | |
import javax.xml.bind.annotation.XmlAccessorType; | |
import javax.xml.bind.annotation.XmlAttribute; | |
import javax.xml.bind.annotation.XmlElement; | |
import javax.xml.bind.annotation.XmlRootElement; | |
import javax.xml.bind.annotation.XmlType; | |
@XmlAccessorType(XmlAccessType.FIELD) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-16"?> | |
<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<xsd:element name="query" type="queryType" /> | |
<xsd:complexType name="queryType"> | |
<xsd:sequence> | |
<xsd:element maxOccurs="unbounded" name="query-param" type="query-paramType" /> | |
</xsd:sequence> | |
<xsd:attribute name="name" type="xsd:string" /> | |
</xsd:complexType> | |
<xsd:complexType name="query-paramType"> |
OlderNewer