public String getSearchSubsystem() { return (searchSubsystem == null) ? "" : searchSubsystem.getCurrentSourceBeanName(); }
public void start() { if (this.sourceApplicationContextFactory == null) { this.sourceApplicationContextFactory = (ApplicationContextFactory) getParent().getBean( this.sourceBeanName); this.sourceApplicationContextFactory.start(); } }
public ApplicationContext getApplicationContext() { this.lock.readLock().lock(); try { return ((SwitchableState) getState(true)).getApplicationContext(); } finally { this.lock.readLock().unlock(); } }
public void onApplicationEvent(ApplicationEvent event) { if(logger.isDebugEnabled()) { logger.debug("event : " + event); } if (event instanceof DescriptorServiceAvailableEvent) { descriptorService = ((DescriptorServiceAvailableEvent)event).getDescriptorService(); } super.onApplicationEvent(event); }
public void start() { if (this.sourceApplicationContextFactory == null) { this.sourceApplicationContextFactory = (ApplicationContextFactory) getParent().getBean( this.sourceBeanName); this.sourceApplicationContextFactory.start(); } }
public ApplicationContext getApplicationContext() { this.lock.readLock().lock(); try { return ((SwitchableState) getState(true)).getApplicationContext(); } finally { this.lock.readLock().unlock(); } }
public void onApplicationEvent(ApplicationEvent event) { if(logger.isDebugEnabled()) { logger.debug("event : " + event); } if (event instanceof DescriptorServiceAvailableEvent) { descriptorService = ((DescriptorServiceAvailableEvent)event).getDescriptorService(); } super.onApplicationEvent(event); }
public void setProperty(String name, String value) { if (!name.equals(SwitchableApplicationContextFactory.SOURCE_BEAN_PROPERTY)) { throw new IllegalStateException("Illegal attempt to write to property \"" + name + "\""); } if (!getParent().containsBean(value)) { throw new IllegalStateException("\"" + value + "\" is not a valid bean name"); } if (this.sourceApplicationContextFactory != null) { stop(); this.sourceBeanName = value; start(); } else { this.sourceBeanName = value; } }
public String getCurrentSourceBeanName() { return getState(false).getProperty(SwitchableApplicationContextFactory.SOURCE_BEAN_PROPERTY); }
public String getSearchSubsystem() { return (searchSubsystem == null) ? "" : searchSubsystem.getCurrentSourceBeanName(); }
public void setProperty(String name, String value) { if (!name.equals(SwitchableApplicationContextFactory.SOURCE_BEAN_PROPERTY)) { throw new IllegalStateException("Illegal attempt to write to property \"" + name + "\""); } if (!getParent().containsBean(value)) { throw new IllegalStateException("\"" + value + "\" is not a valid bean name"); } if (this.sourceApplicationContextFactory != null) { stop(); this.sourceBeanName = value; start(); } else { this.sourceBeanName = value; } }
public String getCurrentSourceBeanName() { return getState(false).getProperty(SwitchableApplicationContextFactory.SOURCE_BEAN_PROPERTY); }