Class Bootstrap


  • public class Bootstrap
    extends java.lang.Object
    Helper methods for acquiring BrokerFactory objects
    Since:
    0.4.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      Bootstrap()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static BrokerFactory getBrokerFactory()
      Return a pooled factory for the default configuration.
      static BrokerFactory getBrokerFactory​(org.apache.openjpa.lib.conf.ConfigurationProvider conf, java.lang.ClassLoader loader)
      Return a pooled factory for the given configuration.
      static BrokerFactory newBrokerFactory()
      Return a new factory for the default configuration.
      static BrokerFactory newBrokerFactory​(org.apache.openjpa.lib.conf.ConfigurationProvider conf, java.lang.ClassLoader loader)
      Return a new factory for the given configuration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Bootstrap

        public Bootstrap()
    • Method Detail

      • newBrokerFactory

        public static BrokerFactory newBrokerFactory()
        Return a new factory for the default configuration.
      • newBrokerFactory

        public static BrokerFactory newBrokerFactory​(org.apache.openjpa.lib.conf.ConfigurationProvider conf,
                                                     java.lang.ClassLoader loader)
        Return a new factory for the given configuration. The classloader will be used to load the factory class. If no classloader is given, the thread's context classloader is used.
      • getBrokerFactory

        public static BrokerFactory getBrokerFactory()
        Return a pooled factory for the default configuration.
      • getBrokerFactory

        public static BrokerFactory getBrokerFactory​(org.apache.openjpa.lib.conf.ConfigurationProvider conf,
                                                     java.lang.ClassLoader loader)
        Return a pooled factory for the given configuration. The classloader will be used to load the factory class. If no classloader is given, the thread's context classloader is used.