001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.kernel.jsonwebservice;
016    
017    import com.liferay.portal.kernel.security.pacl.permission.PortalRuntimePermission;
018    
019    import java.io.IOException;
020    import java.io.InputStream;
021    
022    /**
023     * @author Raymond Augé
024     */
025    public class JSONWebServiceClassVisitorFactoryUtil {
026    
027            public static JSONWebServiceClassVisitor create(InputStream inputStream)
028                    throws IOException {
029    
030                    return getJSONWebServiceClassVisitorFactory().create(inputStream);
031            }
032    
033            public static JSONWebServiceClassVisitorFactory
034                    getJSONWebServiceClassVisitorFactory() {
035    
036                    PortalRuntimePermission.checkGetBeanProperty(
037                            JSONWebServiceClassVisitorFactoryUtil.class);
038    
039                    return _jsonWebServiceClassVisitorFactory;
040            }
041    
042            public void setJSONWebServiceClassVisitorFactory(
043                    JSONWebServiceClassVisitorFactory jsonWebServiceClassVisitorFactory) {
044    
045                    PortalRuntimePermission.checkSetBeanProperty(getClass());
046    
047                    _jsonWebServiceClassVisitorFactory = jsonWebServiceClassVisitorFactory;
048            }
049    
050            private static JSONWebServiceClassVisitorFactory
051                    _jsonWebServiceClassVisitorFactory;
052    
053    }