1 17 package org.apache.geronimo.kernel; 18 19 import java.util.Set ; 20 21 import org.apache.geronimo.gbean.AbstractName; 22 import javax.management.ObjectName ; 23 24 25 28 public class GBeanNotFoundException extends KernelException { 29 private ObjectName gBeanName; 30 private AbstractName abstractName; 31 32 public GBeanNotFoundException(ObjectName gBeanName) { 33 super(gBeanName+" not found"); 34 this.gBeanName = gBeanName; 35 } 36 37 public GBeanNotFoundException(ObjectName gBeanName, Throwable cause) { 38 super(gBeanName+" not found", cause); 39 this.gBeanName = gBeanName; 40 } 41 42 public GBeanNotFoundException(AbstractName abstractName) { 43 super(abstractName + " not found"); 44 this.abstractName = abstractName; 45 } 46 47 public GBeanNotFoundException(String message, Set patterns) { 48 super(message + ": " + patterns); 49 } 50 51 public GBeanNotFoundException(String message, Throwable cause) { 52 super(message, cause); 53 } 54 55 public ObjectName getGBeanName() { 56 return gBeanName; 57 } 58 59 public AbstractName getAbstractName() { 60 return abstractName; 61 } 62 63 public boolean isGBeanName() { 64 return gBeanName != null; 65 } 66 67 public boolean isAbstractName() { 68 return abstractName != null; 69 } 70 } 71 | Popular Tags |