public static class ClassFileLocator.Compound extends Object implements ClassFileLocator
ClassFileLocator that chains several locators.
Any class file locator is queried in the supplied order until one locator is able to provide an input
stream of the class file.ClassFileLocator.AgentBased, ClassFileLocator.Compound, ClassFileLocator.ForClassLoader, ClassFileLocator.ResolutionCLASS_FILE_EXTENSION| Constructor and Description |
|---|
Compound(ClassFileLocator... classFileLocator)
Creates a new compound class file locator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
ClassFileLocator.Resolution |
locate(String typeName)
Locates the class file for a given type and returns the binary data of the class file.
|
String |
toString() |
public Compound(ClassFileLocator... classFileLocator)
classFileLocator - The ClassFileLocators to be
represented by this compound class file locator in the order of their application.public ClassFileLocator.Resolution locate(String typeName) throws IOException
ClassFileLocatorlocate in interface ClassFileLocatortypeName - The name of the type to locate a class file representation for.IOException - If reading a class file causes an error.Copyright © 2014–2015. All rights reserved.