org.sapia.clazzy
Interface LoaderSelector

All Known Implementing Classes:
DefaultLoaderSelector

public interface LoaderSelector

An implementation of this interface is used to determine if given classes or resources correspond to given Loaders.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2004 Sapia Open Source Software . All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site
See Also:
CompositeClassLoader

Method Summary
 boolean acceptsClass(String className, Loader loader)
           
 boolean acceptsResource(String resourceName, Loader loader)
           
 

Method Detail

acceptsClass

public boolean acceptsClass(String className,
                            Loader loader)
Parameters:
className - the name of a class.
loader - a Loader.
Returns:
true if the given Loader is in charge of providing the bytes of the class corresponding to the given class name.

acceptsResource

public boolean acceptsResource(String resourceName,
                               Loader loader)
Parameters:
resourceName - the name of a resource.
loader - a Loader.
Returns:
true if the given Loader is in charge of providing the bytes of the resource corresponding to the given resource name.


Copyright © 2002 Sapia Open Community, Inc. All Rights Reserved.