/** * If necessary, initialize the factory and the method. */ public void initialize(AbstractSession session) throws DescriptorException { if (this.isUsingDefaultConstructor()) { // May not have a constructor as may be abstract or interface so only lazy init. return; } try { this.initializeMethod(); if (!(Modifier.isStatic(getMethod().getModifiers()))) { // If the factory has been specified directly, do not overwrite it if (this.getFactory() == null) { this.setFactory(this.buildFactory()); } } } catch (DescriptorException ex) { session.getIntegrityChecker().handleError(ex); } }
/** * If necessary, initialize the factory and the method. */ public void initialize(AbstractSession session) throws DescriptorException { if (this.isUsingDefaultConstructor()) { // May not have a constructor as may be abstract or interface so only lazy init. return; } try { this.initializeMethod(); if (!(Modifier.isStatic(getMethod().getModifiers()))) { // If the factory has been specified directly, do not overwrite it if (this.getFactory() == null) { this.setFactory(this.buildFactory()); } } } catch (DescriptorException ex) { session.getIntegrityChecker().handleError(ex); } }
/** * If necessary, initialize the factory and the method. */ public void initialize(AbstractSession session) throws DescriptorException { if (this.isUsingDefaultConstructor()) { // May not have a constructor as may be abstract or interface so only lazy init. return; } try { // If the factory has been specified directly, do not overwrite it if (this.getFactory() == null) { this.setFactory(this.buildFactory()); } this.initializeMethod(); } catch (DescriptorException ex) { session.getIntegrityChecker().handleError(ex); } }