Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / search / ISearchServiceFactory.java
blobaee4a2f413048b500369b7857d10d3ace84093e5
1 // Copyright 2012 Google Inc. All rights reserved.
3 package com.google.appengine.api.search;
5 /**
6 * An factory that creates default implementation of {@link SearchService}.
8 */
9 public interface ISearchServiceFactory {
11 /**
12 * Returns an instance of the {@link SearchService}. The instance
13 * will exist in the user provided namespace. The namespace must be
14 * valid, as per {@link NamespaceManager#validateNamespace(String)}
15 * method.
17 * @param namespace a namespace to be assigned to the returned
18 * search service.
19 * @return the default implementation of {@link SearchService}.
20 * @throws IllegalArgumentException if the namespace is invalid
22 SearchService getSearchService(String namespace);