public class ClassAcceptor extends Object
Constructor and Description |
---|
ClassAcceptor() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(String className,
URL classUrl,
URL classPathUrl)
Invoked to determine if class can be accepted.
|
public boolean accept(String className, URL classUrl, URL classPathUrl)
className
- Name of the class.classUrl
- URL for the class resource.classPathUrl
- URL for the class path resource that contains the class resource.
If the URL protocol is file
, it would be the path to root package.
If the URL protocol is jar
, it would be the jar file.Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.