/** * This method is used to acquire an instance of the type that * is defined by this object. If for some reason the type can * not be instantiated an exception is thrown from this. * * @return an instance of the type this object represents */ public Object getInstance() throws Exception { if(value == null) { value = getObject(type); } return value; }
/** * This method is used to acquire an instance of the type that * is defined by this object. If for some reason the type can * not be instantiated an exception is thrown from this. * * @return an instance of the type this object represents */ public Object getInstance() throws Exception { if(value == null) { value = getObject(type); } return value; }
/** * This method is used to acquire an instance of the type that * is defined by this object. If for some reason the type can * not be instantiated an exception is thrown from this. * * @return an instance of the type this object represents */ public Object getInstance() throws Exception { if(value == null) { value = getObject(type); } return value; }
/** * This method is used to acquire an instance of the type that * is defined by this object. If for some reason the type can * not be instantiated an exception is thrown from this. * * @return an instance of the type this object represents */ public Object getInstance() throws Exception { if(value.isReference()) { return value.getValue(); } Object object = getObject(type); if(value != null) { value.setValue(object); } return object; }
/** * This method is used to acquire an instance of the type that * is defined by this object. If for some reason the type can * not be instantiated an exception is thrown from this. * * @return an instance of the type this object represents */ public Object getInstance() throws Exception { if(value.isReference()) { return value.getValue(); } Object object = getObject(type); if(value != null) { value.setValue(object); } return object; }
/** * This method is used to acquire an instance of the type that * is defined by this object. If for some reason the type can * not be instantiated an exception is thrown from this. * * @return an instance of the type this object represents */ public Object getInstance() throws Exception { if(value.isReference()) { return value.getValue(); } Object object = getObject(type); if(value != null) { value.setValue(object); } return object; }