com.dyuproject.ioc
Interface Resource.Resolver

All Known Implementing Classes:
AbstractResolver, ClasspathResolver, DefaultResolver, FileResolver, ResolverCollection, URLResolver
Enclosing class:
Resource

public static interface Resource.Resolver

A Resource resolver that basically allows it to be read via Resource.getReader().


Method Summary
 Resource createResource(String path)
          Creates a resource from a given path string.
 String getType()
          Gets the type (id) of resolver
 void resolve(Resource resource, Context context)
          Resolves a resource by setting the Reader property of the Resource.
 

Method Detail

getType

String getType()
Gets the type (id) of resolver


resolve

void resolve(Resource resource,
             Context context)
             throws IOException
Resolves a resource by setting the Reader property of the Resource. That is done via Resource.resolve(Reader).

Throws:
IOException

createResource

Resource createResource(String path)
                        throws IOException
Creates a resource from a given path string.

Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.