/** * Returns the lazy-initialized target object, * creating it on-the-fly if it doesn't exist already. * @see #createObject() */ @Override public synchronized Object getTarget() throws Exception { if (this.lazyTarget == null) { logger.debug("Initializing lazy target object"); this.lazyTarget = createObject(); } return this.lazyTarget; }
= (AbstractLazyCreationTargetSource) targetSource; if ( lazyCreationTargetSource.isInitialized() ) { return getProxyTarget( lazyCreationTargetSource.getTarget() ); lazyCreationTargetSource.getTargetClass() ); return null;
/** * Returns the lazy-initialized target object, * creating it on-the-fly if it doesn't exist already. * @see #createObject() */ @Override public synchronized Object getTarget() throws Exception { if (this.lazyTarget == null) { logger.debug("Initializing lazy target object"); this.lazyTarget = createObject(); } return this.lazyTarget; }
/** * Returns the lazy-initialized target object, * creating it on-the-fly if it doesn't exist already. * @see #createObject() */ @Override public synchronized Object getTarget() throws Exception { if (this.lazyTarget == null) { logger.debug("Initializing lazy target object"); this.lazyTarget = createObject(); } return this.lazyTarget; }