Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
youfanx committed Jul 11, 2024
1 parent 535cf83 commit 1d66290
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rxlib/src/main/java/org/rx/core/IOC.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ static synchronized <T> T innerGet(Class<T> type) {
}

public static <T> void register(@NonNull Class<T> type, @NonNull T bean) {
// List<Class<?>> types = ClassUtils.getAllSuperclasses(type); ClassUtils.getAllInterfaces(type);
List<Class<?>> types = new ArrayList<>();
types.add(type);
types.add(type.getSuperclass());
Class<?> superclass = type.getSuperclass();
if (superclass != null) {
types.add(superclass);
}
for (Class<?> i : type.getInterfaces()) {
types.add(i);
}
Expand Down
1 change: 1 addition & 0 deletions rxlib/src/main/java/org/rx/core/RxConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ void afterSet() {
// refreshFrom(sysProps);
// }

//初始化减少依赖其他类
@SneakyThrows
public void refreshFromSystemProperty() {
trace.keepDays = SystemPropertyUtil.getInt(ConfigNames.TRACE_KEEP_DAYS, trace.keepDays);
Expand Down

0 comments on commit 1d66290

Please sign in to comment.