protected void init() { log.fine("No service implementation instance available, initializing..."); try { // The actual instance we ware going to use and hold a reference to (1:1 instance for manager) serviceImpl = createServiceInstance(); // How the implementation instance will tell us about property changes propertyChangeSupport = createPropertyChangeSupport(serviceImpl); propertyChangeSupport.addPropertyChangeListener(createPropertyChangeListener(serviceImpl)); } catch (Exception ex) { throw new RuntimeException("Could not initialize implementation: " + ex, ex); } }
protected void init() { log.fine("No service implementation instance available, initializing..."); try { // The actual instance we ware going to use and hold a reference to (1:1 instance for manager) serviceImpl = createServiceInstance(); // How the implementation instance will tell us about property changes propertyChangeSupport = createPropertyChangeSupport(serviceImpl); propertyChangeSupport.addPropertyChangeListener(createPropertyChangeListener(serviceImpl)); } catch (Exception ex) { throw new RuntimeException("Could not initialize implementation: " + ex, ex); } }
@Override protected T createServiceInstance() throws Exception { final T serviceInstance = super.createServiceInstance(); beanFactory.autowireBean(serviceInstance); return serviceInstance; } }
protected void init() { log.fine("No service implementation instance available, initializing..."); try { // The actual instance we ware going to use and hold a reference to (1:1 instance for manager) serviceImpl = createServiceInstance(); // How the implementation instance will tell us about property changes propertyChangeSupport = createPropertyChangeSupport(serviceImpl); propertyChangeSupport.addPropertyChangeListener(createPropertyChangeListener(serviceImpl)); } catch (Exception ex) { throw new RuntimeException("Could not initialize implementation: " + ex, ex); } }