Package com.alibaba.citrus.service.resource

Examples of com.alibaba.citrus.service.resource.ResourceLoadingService


        @Override
        @SuppressWarnings("unchecked")
        protected Set<Resource> doFindPathMatchingFileResources(Resource rootDirResource, String subPattern)
                throws IOException {
            ResourceLoadingService resourceLoadingService = getResourceLoadingService();

            // 如果resource loading service不存在,或者resource不是从resource loading service取得的,
            // 则调用原来的装载机制来取得资源。
            if (resourceLoadingService == null || !(rootDirResource instanceof ResourceAdapter)) {
                return super.doFindPathMatchingFileResources(rootDirResource, subPattern);
View Full Code Here


        @Override
        @SuppressWarnings("unchecked")
        protected Set<Resource> doFindPathMatchingFileResources(Resource rootDirResource, String subPattern)
                throws IOException {
            ResourceLoadingService resourceLoadingService = getResourceLoadingService();

            // 如果resource loading service不存在,或者resource不是从resource loading service取得的,
            // 则调用原来的装载机制来取得资源。
            if (resourceLoadingService == null || !(rootDirResource instanceof ResourceAdapter)) {
                return super.doFindPathMatchingFileResources(rootDirResource, subPattern);
View Full Code Here

     * <p>
     * �������<code>null</code>��ʾʹ��ԭ����װ�ػ�����ȡ����Դ��
     * </p>
     */
    public Resource getResourceByPath(String path) {
        ResourceLoadingService resourceLoadingService = getResourceLoadingService();

        if (resourceLoadingService == null) {
            // ���resource loading service�����ڣ��򷵻�null������ԭ����װ�ػ�����ȡ����Դ��
            return null;
        }

        com.alibaba.citrus.service.resource.Resource resource;

        try {
            resource = resourceLoadingService.getResource(path, FOR_CREATE);
        } catch (IllegalStateException e) {
            // resourceLoadingServiceδ׼���ã��п������ڳ�ʼ��resource loading service�Ĺ����У�
            // ij��loader��filterͨ��spring resource loaderע��resource���Ӷ������ݹ���á�
            // ��ʱ����null������ԭ����װ�ػ�����ȡ����Դ��
            return null;
View Full Code Here

     * <p>
     * �������<code>null</code>��ʾʹ��ԭ����װ�ػ�����ȡ����Դ��
     * </p>
     */
    public Resource getResourceByPath(String path) {
        ResourceLoadingService resourceLoadingService = getResourceLoadingService();

        if (resourceLoadingService == null) {
            // ���resource loading service�����ڣ��򷵻�null������ԭ����װ�ػ�����ȡ����Դ��
            return null;
        }

        com.alibaba.citrus.service.resource.Resource resource;

        try {
            resource = resourceLoadingService.getResource(path, FOR_CREATE);
        } catch (IllegalStateException e) {
            // resourceLoadingServiceδ׼���ã��п������ڳ�ʼ��resource loading service�Ĺ����У�
            // ij��loader��filterͨ��spring resource loaderע��resource���Ӷ������ݹ���á�
            // ��ʱ����null������ԭ����װ�ػ�����ȡ����Դ��
            return null;
View Full Code Here

        @Override
        @SuppressWarnings("unchecked")
        protected Set<Resource> doFindPathMatchingFileResources(Resource rootDirResource, String subPattern)
                throws IOException {
            ResourceLoadingService resourceLoadingService = getResourceLoadingService();

            // ���resource loading service�����ڣ�����resource���Ǵ�resource loading serviceȡ�õģ�
            // �����ԭ����װ�ػ�����ȡ����Դ��
            if (resourceLoadingService == null || !(rootDirResource instanceof ResourceAdapter)) {
                return super.doFindPathMatchingFileResources(rootDirResource, subPattern);
View Full Code Here

        @Override
        @SuppressWarnings("unchecked")
        protected Set<Resource> doFindPathMatchingFileResources(Resource rootDirResource, String subPattern)
                throws IOException {
            ResourceLoadingService resourceLoadingService = getResourceLoadingService();

            // ���resource loading service�����ڣ�����resource���Ǵ�resource loading serviceȡ�õģ�
            // �����ԭ����װ�ػ�����ȡ����Դ��
            if (resourceLoadingService == null || !(rootDirResource instanceof ResourceAdapter)) {
                return super.doFindPathMatchingFileResources(rootDirResource, subPattern);
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.service.resource.ResourceLoadingService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.