protected static class AgentBuilder.BinaryLocator.Default.Initialized extends Object implements AgentBuilder.BinaryLocator.Initialized, ClassFileLocator
AgentBuilder.BinaryLocator.Default in its initialized form.ClassFileLocator.AgentBased, ClassFileLocator.Compound, ClassFileLocator.ForClassLoader, ClassFileLocator.ResolutionCLASS_FILE_EXTENSION| Constructor and Description |
|---|
Initialized(String typeName,
byte[] binaryRepresentation,
TypePool.CacheProvider cacheProvider,
ClassFileLocator classFileLocator)
Creates a new initialized form of a default binary locator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
ClassFileLocator |
getClassFileLocator()
Returns the class file locator to be used of an
AgentBuilder. |
TypePool |
getTypePool()
Returns the type pool to be used of an
AgentBuilder. |
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 Initialized(String typeName, byte[] binaryRepresentation, TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator)
typeName - The binary name of the type that is being instrumented.binaryRepresentation - The binary representation of the instrumented type.cacheProvider - The cache provider to use.classFileLocator - The class file locator to use.public TypePool getTypePool()
AgentBuilder.BinaryLocator.InitializedAgentBuilder.getTypePool in interface AgentBuilder.BinaryLocator.Initializedpublic ClassFileLocator getClassFileLocator()
AgentBuilder.BinaryLocator.InitializedAgentBuilder.getClassFileLocator in interface AgentBuilder.BinaryLocator.Initializedpublic 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.