public class PCClassFileTransformer extends Object implements ClassFileTransformer
PersistenceCapable
interface at runtime.Constructor and Description |
---|
PCClassFileTransformer(MetaDataRepository repos,
Options opts,
ClassLoader loader)
Constructor.
|
PCClassFileTransformer(MetaDataRepository repos,
PCEnhancer.Flags flags,
ClassLoader tmpLoader,
boolean devscan)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
transform(ClassLoader loader,
String className,
Class redef,
ProtectionDomain domain,
byte[] bytes) |
public PCClassFileTransformer(MetaDataRepository repos, Options opts, ClassLoader loader)
repos
- metadata repository to use internallyopts
- enhancer configuration optionsloader
- temporary class loader for loading intermediate classespublic PCClassFileTransformer(MetaDataRepository repos, PCEnhancer.Flags flags, ClassLoader tmpLoader, boolean devscan)
repos
- metadata repository to use internallyflags
- enhancer configurationtmpLoader
- temporary class loader for loading intermediate classesdevscan
- whether to scan the dev classpath for persistent types
if none are configuredpublic byte[] transform(ClassLoader loader, String className, Class redef, ProtectionDomain domain, byte[] bytes) throws IllegalClassFormatException
transform
in interface ClassFileTransformer
IllegalClassFormatException
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.