|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dyuproject.ioc.ResolverCollection
com.dyuproject.ioc.DefaultResolver
public class DefaultResolver
The default resolver which delegates the resolution to FileResolver
,
URLResolver
and ClasspathResolver
.
Field Summary | |
---|---|
static DefaultResolver |
DEFAULT
The default instance |
static String |
TYPE
The type of this resolver. |
Fields inherited from class com.dyuproject.ioc.ResolverCollection |
---|
_resolvers, _type |
Method Summary | |
---|---|
Resource |
createResource(String path)
Creates a resource from a given path string. |
static DefaultResolver |
getDefault()
Gets the default instance. |
static void |
putDefaultResolvers(Map<String,Resource.Resolver> resolvers)
Puts the FileResolver , URLResolver and ClasspathResolver
on the given map. |
protected void |
resolveDefault(Resource resource,
Context context)
|
Methods inherited from class com.dyuproject.ioc.ResolverCollection |
---|
getResolver, getType, putResolver, resolve |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TYPE
public static DefaultResolver DEFAULT
Method Detail |
---|
public static DefaultResolver getDefault()
public static void putDefaultResolvers(Map<String,Resource.Resolver> resolvers)
FileResolver
, URLResolver
and ClasspathResolver
on the given map.
protected void resolveDefault(Resource resource, Context context) throws IOException
resolveDefault
in class ResolverCollection
IOException
public Resource createResource(String path) throws IOException
Resource.Resolver
createResource
in interface Resource.Resolver
createResource
in class ResolverCollection
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |