Interface EnhancerClassLocator
-
- All Superinterfaces:
net.bytebuddy.pool.TypePool
- All Known Implementing Classes:
ModelTypePool
public interface EnhancerClassLocator extends net.bytebuddy.pool.TypePool
Extends the TypePool contract of ByteBuddy with our additional needs.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool
net.bytebuddy.pool.TypePool.AbstractBase, net.bytebuddy.pool.TypePool.CacheProvider, net.bytebuddy.pool.TypePool.ClassLoading, net.bytebuddy.pool.TypePool.Default, net.bytebuddy.pool.TypePool.Empty, net.bytebuddy.pool.TypePool.Explicit, net.bytebuddy.pool.TypePool.LazyFacade, net.bytebuddy.pool.TypePool.Resolution
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description net.bytebuddy.dynamic.ClassFileLocator
asClassFileLocator()
void
deregisterClassNameAndBytes(String className)
This can optionally be used to remove an explicit mapping when it's no longer essential to retain it.void
registerClassNameAndBytes(String className, byte[] originalBytes)
Register a new class to the locator explicitly.
-
-
-
Method Detail
-
registerClassNameAndBytes
void registerClassNameAndBytes(String className, byte[] originalBytes)
Register a new class to the locator explicitly.- Parameters:
className
-originalBytes
-
-
deregisterClassNameAndBytes
void deregisterClassNameAndBytes(String className)
This can optionally be used to remove an explicit mapping when it's no longer essential to retain it. The underlying implementation might ignore the operation.- Parameters:
className
-
-
asClassFileLocator
net.bytebuddy.dynamic.ClassFileLocator asClassFileLocator()
- Returns:
- the underlying
ClassFileLocator
-
-