Java源码示例:org.keycloak.platform.PlatformProvider

示例1
private <T> T getPlatformField(Class<T> type, String name) {
    PlatformProvider p = Platform.getPlatform();
    Field field = ReflectionUtils.findField(p.getClass(), name);
    ReflectionUtils.makeAccessible(field);
    return type.cast(ReflectionUtils.getField(field, p));
}