org.sapia.clazzy.LoaderSelector Maven / Gradle / Ivy
package org.sapia.clazzy;
import org.sapia.clazzy.loader.Loader;
/**
* An implementation of this interface is used to determine if given classes
* or resources correspond to given Loader
s.
*
* @see org.sapia.clazzy.CompositeClassLoader
*
* @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
*
*
*/
public interface LoaderSelector {
/**
* @param className the name of a class.
* @param loader a Loader
.
* @return true
if the given Loader
is in charge
* of providing the bytes of the class corresponding to the given class name.
*/
public boolean acceptsClass(String className, Loader loader);
/**
* @param resourceName the name of a resource.
* @param loader a Loader
.
* @return true
if the given Loader
is in charge
* of providing the bytes of the resource corresponding to the given resource name.
*/
public boolean acceptsResource(String resourceName, Loader loader);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy