|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openejb.persistence.PersistenceBootstrap
public class PersistenceBootstrap
The goal of this class is to support persistence providers that need to do byte code enhancement in embedded environments like JUnit where all the entity classes are right on the system classpath and likely to be loaded before OpenEJB boots. The org.apache.openejb.javaagent.Agent class calls the bootstrap() method of this class the first time it finds a classloader that has the openejb-core jar. We then do a quick scan of the classpath looking for persistence.xml files and attempt to get the related persistence providers to setup the correct byte code enhancing for the classes listed in the persistence.xml files.
Nested Class Summary | |
---|---|
static class |
PersistenceBootstrap.Transformer
|
Constructor Summary | |
---|---|
PersistenceBootstrap()
|
Method Summary | |
---|---|
static void |
bootstrap(java.lang.ClassLoader classLoader)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistenceBootstrap()
Method Detail |
---|
public static void bootstrap(java.lang.ClassLoader classLoader)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |