Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
This file is part of Port@l Port@l 3.0 - Portal Engine and Management System Copyright (C) 2010 Isotrol, SA. Port@l is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Port@l is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Port@l. If not, see <>.
package com.isotrol.impe3.idx.config;
import static;
Index service factory bean.

Andres Rodriguez Chamorro
	private final Store<?> store;
	private final Indexer<?> indexer;
	private volatile DefaultIndexerService<?> service = null;
	IndexServiceFactoryBean(Analyzer analyzerStore<?> storeIndexer<?> indexer) {
		this. = checkNotNull(store"The store must be provided");
		this. = checkNotNull(indexer"The indexer must be provided");
	public synchronized void afterPropertiesSet() throws Exception {
		if ( == null) {
			final DefaultWriter writer = new DefaultWriter(getSupplier());
			// We know what we are doing.
			DefaultIndexerService<?> s = new DefaultIndexerService(writernullisPasive());
			Delays d = getDelays();
			if (d != null) {
			 = s;
	public IndexerService getObject() throws Exception {
		return ;
	public synchronized void destroy() throws Exception {
		if ( != null) {
			 = null;
New to GrepCode? Check out our FAQ X