This commit is contained in:
kamhung
2015-12-03 15:22:35 +08:00
parent 93c4360137
commit 7d4f3cfecf
3 changed files with 3 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ public final class SncpClient {
Method old = actionids.get(actionid);
if (old != null) {
if (old.getDeclaringClass().equals(method.getDeclaringClass()))
throw new RuntimeException(serviceClass.getName() + " have one more same action(Method=" + method + ", actionid=" + actionid + ")");
throw new RuntimeException(serviceClass.getName() + " have one more same action(Method=" + method + ", " + old + ", actionid=" + actionid + ")");
continue;
}
actionids.put(actionid, method);

View File

@@ -15,6 +15,7 @@ import javax.annotation.*;
*
* @author zhangjx
*/
@AutoLoad(false)
public class DataSourceService implements DataSource, Service {
@Resource(name = "$")

View File

@@ -173,7 +173,7 @@ public final class ResourceFactory {
}
if (ns == null) continue;
if (ns.getClass().isPrimitive() || ns.getClass().isArray() || ns.getClass().getName().startsWith("java")) continue;
if (flag) this.inject(ns, list);
if (flag) this.inject(ns, attachment, list);
continue;
}
if (Modifier.isFinal(field.getModifiers())) continue;