java类java.beans.Beans的实例源码

SkinPregenerationUtils.java 文件源码 项目:myfaces-trinidad 阅读 13 收藏 0 点赞 0 评论 0
private static SkinPregenerator _getSkinPregenerator()
{
  if (Beans.isDesignTime())
  {
    return _NOOP_PREGENERATOR;
  }

  return new AllVariantsSkinPregenerator();
}
Test4080522.java 文件源码 项目:jdk8u-jdk 阅读 13 收藏 0 点赞 0 评论 0
private static void test(String[] path) {
    try {
        Beans.setDesignTime(true);
        Beans.setGuiAvailable(true);
        Introspector.setBeanInfoSearchPath(path);
        PropertyEditorManager.setEditorSearchPath(path);
    } catch (SecurityException exception) {
        throw new Error("unexpected security exception", exception);
    }
}
TestGuiAvailable.java 文件源码 项目:jdk8u-jdk 阅读 13 收藏 0 点赞 0 评论 0
public static void main(String[] args) throws InterruptedException {
    if (Beans.isGuiAvailable() == GraphicsEnvironment.isHeadless()) {
        throw new Error("unexpected GuiAvailable property");
    }
    Beans.setGuiAvailable(!Beans.isGuiAvailable());
    ThreadGroup group = new ThreadGroup("$$$");
    Thread thread = new Thread(group, new TestGuiAvailable());
    thread.start();
    thread.join();
}
TestDesignTime.java 文件源码 项目:jdk8u-jdk 阅读 13 收藏 0 点赞 0 评论 0
public static void main(String[] args) throws InterruptedException {
    if (Beans.isDesignTime()) {
        throw new Error("unexpected DesignTime property");
    }
    Beans.setDesignTime(!Beans.isDesignTime());
    ThreadGroup group = new ThreadGroup("$$$");
    Thread thread = new Thread(group, new TestDesignTime());
    thread.start();
    thread.join();
}
Test4144543.java 文件源码 项目:jdk8u-jdk 阅读 13 收藏 0 点赞 0 评论 0
public static void main(String[] args) throws Exception {
    Class type = Beans.instantiate(null, "Test4144543").getClass();

    // try all the various places that this would break before

    Introspector.getBeanInfo(type);
    new PropertyDescriptor("value", type);
    new PropertyDescriptor("value", type, "getValue", "setValue");
}
Test4080522.java 文件源码 项目:openjdk-jdk10 阅读 12 收藏 0 点赞 0 评论 0
private static void test(String[] path) {
    try {
        Beans.setDesignTime(true);
        Beans.setGuiAvailable(true);
        Introspector.setBeanInfoSearchPath(path);
        PropertyEditorManager.setEditorSearchPath(path);
    } catch (SecurityException exception) {
        throw new Error("unexpected security exception", exception);
    }
}
TestGuiAvailable.java 文件源码 项目:openjdk-jdk10 阅读 13 收藏 0 点赞 0 评论 0
public static void main(String[] args) throws InterruptedException {
    if (Beans.isGuiAvailable() == GraphicsEnvironment.isHeadless()) {
        throw new Error("unexpected GuiAvailable property");
    }
    Beans.setGuiAvailable(!Beans.isGuiAvailable());
    ThreadGroup group = new ThreadGroup("$$$");
    Thread thread = new Thread(group, new TestGuiAvailable());
    thread.start();
    thread.join();
}
TestDesignTime.java 文件源码 项目:openjdk-jdk10 阅读 13 收藏 0 点赞 0 评论 0
public static void main(String[] args) throws InterruptedException {
    if (Beans.isDesignTime()) {
        throw new Error("unexpected DesignTime property");
    }
    Beans.setDesignTime(!Beans.isDesignTime());
    ThreadGroup group = new ThreadGroup("$$$");
    Thread thread = new Thread(group, new TestDesignTime());
    thread.start();
    thread.join();
}
Test4144543.java 文件源码 项目:openjdk-jdk10 阅读 13 收藏 0 点赞 0 评论 0
public static void main(String[] args) throws Exception {
    Class type = Beans.instantiate(null, "Test4144543").getClass();

    // try all the various places that this would break before

    Introspector.getBeanInfo(type);
    new PropertyDescriptor("value", type);
    new PropertyDescriptor("value", type, "getValue", "setValue");
}
Test4080522.java 文件源码 项目:openjdk9 阅读 13 收藏 0 点赞 0 评论 0
private static void test(String[] path) {
    try {
        Beans.setDesignTime(true);
        Beans.setGuiAvailable(true);
        Introspector.setBeanInfoSearchPath(path);
        PropertyEditorManager.setEditorSearchPath(path);
    } catch (SecurityException exception) {
        throw new Error("unexpected security exception", exception);
    }
}


问题


面经


文章

微信
公众号

扫码关注公众号