Java 类javax.xml.soap.SAAJMetaFactory 实例源码

项目:wso2-axis2    文件:SAAJTestRunner.java   
private void resetSAAJFactories() {
    // SAAJMetaFactory caches the instance; use reflection to reset it between test runs.
    // Note that the other factories are OK.
    try {
        Field field = SAAJMetaFactory.class.getDeclaredField("instance");
        field.setAccessible(true);
        field.set(null, null);
    } catch (Throwable ex) {
        throw new Error(ex);
    }
}