org.broadleafcommerce.common.extensibility.jpa.copy
Class NullClassTransformer

java.lang.Object
  extended by org.broadleafcommerce.common.extensibility.jpa.copy.NullClassTransformer
All Implemented Interfaces:
javax.persistence.spi.ClassTransformer, BroadleafClassTransformer

public class NullClassTransformer
extends Object
implements BroadleafClassTransformer

This class transformer will do nothing. The main use case for this transformer is when you would prefer to not have a module's template classes copied over, and would rather do it yourself. This transformer should not typically be used.

Author:
Andre Azzolini (apazzolini)

Constructor Summary
NullClassTransformer()
           
 
Method Summary
 void compileJPAProperties(Properties props, Object key)
           
 byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullClassTransformer

public NullClassTransformer()
Method Detail

compileJPAProperties

public void compileJPAProperties(Properties props,
                                 Object key)
                          throws Exception
Specified by:
compileJPAProperties in interface BroadleafClassTransformer
Throws:
Exception

transform

public byte[] transform(ClassLoader loader,
                        String className,
                        Class<?> classBeingRedefined,
                        ProtectionDomain protectionDomain,
                        byte[] classfileBuffer)
                 throws IllegalClassFormatException
Specified by:
transform in interface javax.persistence.spi.ClassTransformer
Throws:
IllegalClassFormatException


Copyright © 2013. All Rights Reserved.