Package com.dyuproject.ioc.Resource

Examples of com.dyuproject.ioc.Resource.Resolver


                    URLResolver.DEFAULT.resolve(resource, context);
                    return;
                }
        }
        String type = path.substring(0, idx).trim();
        Resolver resolver = getResolver(type);
        if(resolver==null)
            FileResolver.DEFAULT.resolve(resource, context);
        else
        {
            path = path.substring(idx+1).trim();
            if(path.length()==0)
                throw new IOException("invalid resource: " + path);
           
            resource.setPath(path);
            resolver.resolve(resource, context);
        }
    }
View Full Code Here


        return _resolvers.put(resolver.getType(), resolver);
    }

    public final void resolve(Resource resource, Context context) throws IOException
    {
        Resolver resolver = getResolver(resource.getType());
        if(resolver==null)
            resolveDefault(resource, context);
        else
            resolver.resolve(resource, context);
    }
View Full Code Here

TOP

Related Classes of com.dyuproject.ioc.Resource.Resolver

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.