blob: 77ea39fb1ae49e19fb77f1eb598b92be7ce9cdd2 [file] [log] [blame]
/**
* Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Florian Pirchner - Initial implementation
*/
package org.eclipse.osbp.runtime.web.vaadin.common.data;
/**
* This factory is exposed as an OSGi service and will return new bean search
* service instances for the given bean type.
*/
public interface IBeanSearchServiceFactory {
/**
* Returns the {@link IBeanSearchService} for the given type. If no proper
* implementation could be found, an in memory service will be returned.
*
* @param <BEAN>
* the generic type
* @param type
* the type
* @return the i bean search service&lt; bea n&gt;
*/
<BEAN> IBeanSearchService<BEAN> createService(Class<BEAN> type);
/**
* Returns the {@link IBeanSearchService} for the given type. If no proper
* implementation could be found, an in memory service will be returned.
*
* @param <BEAN> the generic type
* @param type the type
* @param ignoreHistorizedFilter the historized filter is ignored
* @return the i bean search service&lt; bea n&gt;
*/
<BEAN> IBeanSearchService<BEAN> createService(Class<BEAN> type, boolean ignoreHistorizedFilter);
}