Package org.hibernate.bytecode.util

Examples of org.hibernate.bytecode.util.ClassDescriptor


                logger.debug( "starting zip entry : " + entry.toString() );
                if ( !entry.isDirectory() ) {
                  // see if the entry represents a class file
                  DataInputStream din = new DataInputStream( new ByteArrayInputStream( byteCode ) );
                  if ( din.readInt() == CLASS_MAGIC ) {
                    ClassDescriptor descriptor = getClassDescriptor( byteCode );
                    ClassTransformer transformer = getClassTransformer( descriptor, classNames );
                    if ( transformer == null ) {
                      logger.debug( "no transformer for zip entry :  " + entry.toString() );
                    }
                    else {
                      logger.info( "processing class : " + descriptor.getName() + ";  entry = " + file.getAbsolutePath() );
                      byteCode = transformer.transform(
                          getClass().getClassLoader(),
                          descriptor.getName(),
                          null,
                          null,
                          descriptor.getBytes()
                      );
                    }
                  }
                  else {
                    logger.debug( "ignoring zip entry : " + entry.toString() );
View Full Code Here

TOP

Related Classes of org.hibernate.bytecode.util.ClassDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.