Skip to content
Snippets Groups Projects
Commit 631ab04b authored by Piotr Gawron's avatar Piotr Gawron
Browse files

SearchResultFactory class removed

parent aec32923
No related branches found
No related tags found
No related merge requests found
package lcsb.mapviewer.services.search;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import lcsb.mapviewer.annotation.data.Target;
import lcsb.mapviewer.model.map.model.Model;
import lcsb.mapviewer.model.map.species.Element;
/**
* Factory for {@link ISearchResultView search results}.
*
* @author Piotr Gawron
*
* @param <T>
* type from which objects arec reated
* @param <S>
* search ruslt type
*/
@Transactional(value = "txManager")
public abstract class SearchResultFactory<T, S extends ISearchResultView> extends ElementViewFactory<T, S> {
/**
* Default class logger.
*/
@SuppressWarnings("unused")
private final Logger logger = Logger.getLogger(SearchResultFactory.class);
private ElementMatcher elementMatcher = new ElementMatcher();
protected boolean elementMatch(Target target, Element element) {
return elementMatcher.elementMatch(target, element);
}
/**
* @return the elementMatcher
* @see #elementMatcher
*/
public ElementMatcher getElementMatcher() {
return elementMatcher;
}
/**
* @param elementMatcher
* the elementMatcher to set
* @see #elementMatcher
*/
public void setElementMatcher(ElementMatcher elementMatcher) {
this.elementMatcher = elementMatcher;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment