2 * This document is a part of the source code and related artifacts
\r
3 * for CollectionSpace, an open source collections management system
\r
4 * for museums and related institutions:
\r
6 * http://www.collectionspace.org
\r
7 * http://wiki.collectionspace.org
\r
9 * Copyright 2009 University of California at Berkeley
\r
11 * Licensed under the Educational Community License (ECL), Version 2.0.
\r
12 * You may not use this file except in compliance with this License.
\r
14 * You may obtain a copy of the ECL 2.0 License at
\r
16 * https://source.collectionspace.org/collection-space/LICENSE.txt
\r
18 * Unless required by applicable law or agreed to in writing, software
\r
19 * distributed under the License is distributed on an "AS IS" BASIS,
\r
20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
21 * See the License for the specific language governing permissions and
\r
22 * limitations under the License.
\r
25 package org.collectionspace.services.common;
\r
27 import org.collectionspace.services.common.repository.DocumentHandler;
\r
29 public interface CollectionSpaceHandlerFactory {
\r
31 * getHandler gets or creates a document handler per given client type
\r
32 * @param clientType (java|rest)
\r
34 * @throws IllegalArgumentException
\r
36 public DocumentHandler getHandler(String clientType) throws IllegalArgumentException;
\r