diff --git a/bindings/java/src/org/hyperic/sigar/jmx/SigarProcess.java b/bindings/java/src/org/hyperic/sigar/jmx/SigarProcess.java index f3bcde25..c2bcc2de 100644 --- a/bindings/java/src/org/hyperic/sigar/jmx/SigarProcess.java +++ b/bindings/java/src/org/hyperic/sigar/jmx/SigarProcess.java @@ -37,7 +37,11 @@ public class SigarProcess implements SigarProcessMBean { private SigarProxy sigar; public SigarProcess() { - this.sigarImpl = new Sigar(); + this(new Sigar()); + } + + public SigarProcess(Sigar sigar) { + this.sigarImpl = sigar; this.sigar = SigarProxyCache.newInstance(sigarImpl); }