static byte[] exportJsonData(JsonDataProvider jsonDataProvider) throws IOException { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(bytes)); addEntry(out, "deployment", jsonDataProvider.receiveDeployment()); addEntry(out, "observers", jsonDataProvider.receiveObservers(0, 0, null, Representation.FULL.toString())); addEntry(out, "beans", jsonDataProvider.receiveBeans(0, 0, null, Representation.FULL.toString())); addEntry(out, "fired-events", jsonDataProvider.receiveEvents(0, 0, null)); addEntry(out, "invocation-trees", jsonDataProvider.receiveInvocations(0, 0, null, Representation.FULL.toString())); addEntry(out, "contexts", jsonDataProvider.receiveContexts()); for (String contextKey : Components.INSPECTABLE_SCOPES.keySet()) { addEntry(out, "context-" + contextKey, jsonDataProvider.receiveContext(contextKey)); } // Intentionally do not export contextual instances out.close(); return bytes.toByteArray(); }
static byte[] exportJsonData(JsonDataProvider jsonDataProvider) throws IOException { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(bytes)); addEntry(out, "deployment", jsonDataProvider.receiveDeployment()); addEntry(out, "observers", jsonDataProvider.receiveObservers(0, 0, null, Representation.FULL.toString())); addEntry(out, "beans", jsonDataProvider.receiveBeans(0, 0, null, Representation.FULL.toString())); addEntry(out, "fired-events", jsonDataProvider.receiveEvents(0, 0, null)); addEntry(out, "invocation-trees", jsonDataProvider.receiveInvocations(0, 0, null, Representation.FULL.toString())); addEntry(out, "contexts", jsonDataProvider.receiveContexts()); for (String contextKey : Components.INSPECTABLE_SCOPES.keySet()) { addEntry(out, "context-" + contextKey, jsonDataProvider.receiveContext(contextKey)); } // Intentionally do not export contextual instances out.close(); return bytes.toByteArray(); }
static byte[] exportJsonData(JsonDataProvider jsonDataProvider) throws IOException { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(bytes)); addEntry(out, "deployment", jsonDataProvider.receiveDeployment()); addEntry(out, "observers", jsonDataProvider.receiveObservers(0, 0, null, Representation.FULL.toString())); addEntry(out, "beans", jsonDataProvider.receiveBeans(0, 0, null, Representation.FULL.toString())); addEntry(out, "fired-events", jsonDataProvider.receiveEvents(0, 0, null)); addEntry(out, "invocation-trees", jsonDataProvider.receiveInvocations(0, 0, null, Representation.FULL.toString())); addEntry(out, "contexts", jsonDataProvider.receiveContexts()); for (String contextKey : Components.INSPECTABLE_SCOPES.keySet()) { addEntry(out, "context-" + contextKey, jsonDataProvider.receiveContext(contextKey)); } // Intentionally do not export contextual instances out.close(); return bytes.toByteArray(); }
static byte[] exportJsonData(JsonDataProvider jsonDataProvider) throws IOException { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(bytes)); addEntry(out, "deployment", jsonDataProvider.receiveDeployment()); addEntry(out, "observers", jsonDataProvider.receiveObservers(0, 0, null, Representation.FULL.toString())); addEntry(out, "beans", jsonDataProvider.receiveBeans(0, 0, null, Representation.FULL.toString())); addEntry(out, "fired-events", jsonDataProvider.receiveEvents(0, 0, null)); addEntry(out, "invocation-trees", jsonDataProvider.receiveInvocations(0, 0, null, Representation.FULL.toString())); addEntry(out, "contexts", jsonDataProvider.receiveContexts()); for (String contextKey : Components.INSPECTABLE_SCOPES.keySet()) { addEntry(out, "context-" + contextKey, jsonDataProvider.receiveContext(contextKey)); } // Intentionally do not export contextual instances out.close(); return bytes.toByteArray(); }
static byte[] exportJsonData(JsonDataProvider jsonDataProvider) throws IOException { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(bytes)); addEntry(out, "deployment", jsonDataProvider.receiveDeployment()); addEntry(out, "observers", jsonDataProvider.receiveObservers(0, 0, null, Representation.FULL.toString())); addEntry(out, "beans", jsonDataProvider.receiveBeans(0, 0, null, Representation.FULL.toString())); addEntry(out, "fired-events", jsonDataProvider.receiveEvents(0, 0, null)); addEntry(out, "invocation-trees", jsonDataProvider.receiveInvocations(0, 0, null, Representation.FULL.toString())); addEntry(out, "contexts", jsonDataProvider.receiveContexts()); for (String contextKey : Components.INSPECTABLE_SCOPES.keySet()) { addEntry(out, "context-" + contextKey, jsonDataProvider.receiveContext(contextKey)); } // Intentionally do not export contextual instances out.close(); return bytes.toByteArray(); }
static byte[] exportJsonData(JsonDataProvider jsonDataProvider) throws IOException { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(bytes)); addEntry(out, "deployment", jsonDataProvider.receiveDeployment()); addEntry(out, "observers", jsonDataProvider.receiveObservers(0, 0, null, Representation.FULL.toString())); addEntry(out, "beans", jsonDataProvider.receiveBeans(0, 0, null, Representation.FULL.toString())); addEntry(out, "fired-events", jsonDataProvider.receiveEvents(0, 0, null)); addEntry(out, "invocation-trees", jsonDataProvider.receiveInvocations(0, 0, null, Representation.FULL.toString())); addEntry(out, "contexts", jsonDataProvider.receiveContexts()); for (String contextKey : Components.INSPECTABLE_SCOPES.keySet()) { addEntry(out, "context-" + contextKey, jsonDataProvider.receiveContext(contextKey)); } // Intentionally do not export contextual instances out.close(); return bytes.toByteArray(); }
static byte[] exportJsonData(JsonDataProvider jsonDataProvider) throws IOException { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(bytes)); addEntry(out, "deployment", jsonDataProvider.receiveDeployment()); addEntry(out, "observers", jsonDataProvider.receiveObservers(0, 0, null, Representation.FULL.toString())); addEntry(out, "beans", jsonDataProvider.receiveBeans(0, 0, null, Representation.FULL.toString())); addEntry(out, "fired-events", jsonDataProvider.receiveEvents(0, 0, null)); addEntry(out, "invocation-trees", jsonDataProvider.receiveInvocations(0, 0, null, Representation.FULL.toString())); addEntry(out, "contexts", jsonDataProvider.receiveContexts()); for (String contextKey : Components.INSPECTABLE_SCOPES.keySet()) { addEntry(out, "context-" + contextKey, jsonDataProvider.receiveContext(contextKey)); } // Intentionally do not export contextual instances out.close(); return bytes.toByteArray(); }