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

SearchResultFactory class removed

parent 70fdf473
No related branches found
No related tags found
1 merge request!286Resolve "Remove View objects from service"
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