]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
b3e310b0e364dc67672f13c759b39000090b82f2
[tmp/jakarta-migration.git] /
1 /**\r
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
5 \r
6  *  http://www.collectionspace.org\r
7  *  http://wiki.collectionspace.org\r
8 \r
9  *  Copyright 2009 University of California at Berkeley\r
10 \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
13 \r
14  *  You may obtain a copy of the ECL 2.0 License at\r
15 \r
16  *  https://source.collectionspace.org/collection-space/LICENSE.txt\r
17 \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
23  */\r
24 \r
25 package org.collectionspace.services.common;\r
26 \r
27 import org.collectionspace.services.common.repository.DocumentHandler;\r
28 \r
29 public interface CollectionSpaceHandlerFactory {\r
30     /**\r
31      * getHandler gets or creates a document handler per given client type\r
32      * @param clientType (java|rest)\r
33      * @return\r
34      * @throws IllegalArgumentException\r
35      */\r
36     public DocumentHandler getHandler(String clientType) throws IllegalArgumentException;\r
37 }\r