@Before("call(* javax.xml.bind.Marshaller.marshal(Object,java.io.OutputStream)) && args(o,out)") public void marshal(JoinPoint thisJoinPoint, Object o, OutputStream out) { final ExceptionFactory ef = AbstractOutputStreamAudit.latencyOutputStream(config, HIGH, thisJoinPoint, out); if (ef != null) super.logLatency(HIGH, thisJoinPoint,ef); }
@Before("call(org.xml.sax.InputSource.new(java.io.InputStream)) && args(in)") public void read(JoinPoint thisJoinPoint, InputStream in) { final ReactiveAuditException ex = AbstractInputStreamAudit.latencyInputStream(config, HIGH, thisJoinPoint, in); if (ex != null) super.logLatency(HIGH, thisJoinPoint, new ExceptionFactory() { public ReactiveAuditException lazyException() { return ex; } }); }
@Before("call(* javax.xml.bind.JAXB.unmarshal(java.net.URL,Class)) && args(url,cl)") public void unmarshal(JoinPoint thisJoinPoint, URL url, Class<?> cl) { super.logLatency(HIGH, thisJoinPoint, URLTools.latencyURL(config, thisJoinPoint, url)); } // TODO: XMLEventReader et XMLStreamReader ?
@Before("call(* javax.xml.bind.Unmarshaller.unmarshal(java.io.Reader)) && args(in)") public void unmarshal(JoinPoint thisJoinPoint, Reader in) { final ExceptionFactory ef = AbstractReaderAudit.latencyReader(config, HIGH, thisJoinPoint, in); if (ef != null) super.logLatency(HIGH, thisJoinPoint,ef); }
@Before("call(* javax.xml.bind.JAXB.marshal(Object,java.net.URL)) && args(o,url)") public void marshal(JoinPoint thisJoinPoint, Object o, URL url) { super.logLatency(HIGH, thisJoinPoint, URLTools.latencyURL(config, thisJoinPoint, url)); }
@Before("call(* javax.xml.bind.JAXB.unmarshal(java.io.InputStream,Class)) && args(in,cl)") public void unmarshal(JoinPoint thisJoinPoint, InputStream in, Class<?> cl) { final ReactiveAuditException ex = AbstractInputStreamAudit.latencyInputStream(config, HIGH, thisJoinPoint, in); if (ex != null) super.logLatency(HIGH, thisJoinPoint, new ExceptionFactory() { public ReactiveAuditException lazyException() { return ex; } }); }
@Before("call(* javax.xml.bind.JAXB.unmarshal(java.io.Reader,Class)) && args(in,cl)") public void unmarshal(JoinPoint thisJoinPoint, Reader in, Class<?> cl) { final ExceptionFactory ef = AbstractReaderAudit.latencyReader(config, HIGH, thisJoinPoint, in); if (ef != null) super.logLatency(HIGH, thisJoinPoint, ef); }
/*package*/ void latency(Latency latency, JoinPoint thisJoinPoint, OutputStream out) { final ExceptionFactory ef = latencyOutputStream(config, latency, thisJoinPoint, out); if (ef != null) super.logLatency(latency, thisJoinPoint, ef); } }
@Before("call(org.xml.sax.InputSource.new(java.io.Reader)) && args(in)") public void read(JoinPoint thisJoinPoint, Reader in) { final ExceptionFactory ef = AbstractReaderAudit.latencyReader(config, HIGH, thisJoinPoint, in); if (ef != null) super.logLatency(HIGH, thisJoinPoint, ef); } }
@Before("call(* javax.xml.bind.JAXB.marshal(Object,java.io.Writer)) && args(o,out)") public void marshal(JoinPoint thisJoinPoint, Object o, Writer out) { final ExceptionFactory ef = AbstractWriterAudit.latencyWriter(config, HIGH, thisJoinPoint, out); if (ef != null) super.logLatency(HIGH, thisJoinPoint, ef); }
@Before("call(* javax.xml.parsers.SAXParser.parse(java.io.InputStream,org.xml.sax.helpers.DefaultHandler)) && args(in,dh)") public void parse(JoinPoint thisJoinPoint, InputStream in, DefaultHandler dh) { final ReactiveAuditException ex = AbstractInputStreamAudit.latencyInputStream(config, HIGH, thisJoinPoint, in); if (ex != null) super.logLatency(HIGH, thisJoinPoint, new ExceptionFactory() { public ReactiveAuditException lazyException() { return ex; } }); }
/*package*/ void latency(Latency latency, JoinPoint thisJoinPoint, InputStream in) { final ReactiveAuditException ex = latencyInputStream(config, latency, thisJoinPoint, in); if (ex != null) super.logLatency(latency, thisJoinPoint, new ExceptionFactory() { public ReactiveAuditException lazyException() { return ex; } }); } }
@Before("call(* javax.imageio.ImageIO.read(java.io.InputStream)) && args(in)") public void read(JoinPoint thisJoinPoint, InputStream in) { final ReactiveAuditException ex = AbstractInputStreamAudit.latencyInputStream(config, HIGH, thisJoinPoint, in); if (ex != null) super.logLatency(HIGH, thisJoinPoint, new ExceptionFactory() { public ReactiveAuditException lazyException() { return ex; } }); }
@Before("call(* javax.xml.bind.JAXB.marshal(Object,java.io.OutputStream)) && args(o,out)") public void marshal(JoinPoint thisJoinPoint, Object o, OutputStream out) { final ExceptionFactory ef = AbstractOutputStreamAudit.latencyOutputStream(config, HIGH, thisJoinPoint, out); if (ef != null) super.logLatency(HIGH, thisJoinPoint, ef); }
@Before("call(* javax.xml.bind.Marshaller.marshal(Object,java.io.Writer)) && args(o,out)") public void marshal(JoinPoint thisJoinPoint, Object o, Writer out) { final ExceptionFactory ef = AbstractWriterAudit.latencyWriter(config, HIGH, thisJoinPoint, out); if (ef != null) super.logLatency(HIGH, thisJoinPoint, ef); } }
@Before("call(* javax.xml.bind.Unmarshaller.unmarshal(java.io.InputStream)) && args(in)") public void unmarshal(JoinPoint thisJoinPoint, InputStream in) { final ReactiveAuditException ex = AbstractInputStreamAudit.latencyInputStream(config, HIGH, thisJoinPoint, in); if (ex != null) super.logLatency(HIGH, thisJoinPoint, new ExceptionFactory() { public ReactiveAuditException lazyException() { return ex; } }); }
@Before("call(* javax.xml.bind.Unmarshaller.unmarshal(java.net.URL)) && args(url)") public void unmarshal(JoinPoint thisJoinPoint, URL url) { super.logLatency(HIGH, thisJoinPoint, URLTools.latencyURL(config, thisJoinPoint, url)); } }
protected void latency(Latency latency, JoinPoint thisJoinPoint, Writer writer) throws ReactiveAuditException { final ExceptionFactory ef = latencyWriter(config, latency, thisJoinPoint, writer); if (ef != null) super.logLatency(latency, thisJoinPoint, ef); } }
@Before("call(* javax.imageio.ImageIO.read(java.net.URL)) && args(url)") public void read(JoinPoint thisJoinPoint, URL url) { super.logLatency(HIGH, thisJoinPoint, URLTools.latencyURL(config, thisJoinPoint, url)); }
@Before("call(* javax.xml.parsers.SAXParser.parse(java.io.InputStream,org.xml.sax.HandlerBase)) && args(in,hb)") @SuppressWarnings("deprecation") public void parse(JoinPoint thisJoinPoint, InputStream in, org.xml.sax.HandlerBase hb) { final ReactiveAuditException ex = AbstractInputStreamAudit.latencyInputStream(config, HIGH, thisJoinPoint, in); if (ex != null) super.logLatency(HIGH, thisJoinPoint, new ExceptionFactory() { public ReactiveAuditException lazyException() { return ex; } }); }