Class CayenneContextFactory

  • All Implemented Interfaces:
    org.apache.cayenne.configuration.ObjectContextFactory

    public class CayenneContextFactory
    extends Object
    implements org.apache.cayenne.configuration.ObjectContextFactory
    • Field Detail

      • dataChannel

        protected org.apache.cayenne.DataChannel dataChannel
      • properties

        protected org.apache.cayenne.configuration.RuntimeProperties properties
      • queryCache

        protected org.apache.cayenne.cache.QueryCache queryCache
      • injector

        protected org.apache.cayenne.di.Injector injector
    • Constructor Detail

      • CayenneContextFactory

        public CayenneContextFactory()
    • Method Detail

      • createContext

        public org.apache.cayenne.ObjectContext createContext()
        Specified by:
        createContext in interface org.apache.cayenne.configuration.ObjectContextFactory
      • createContext

        public org.apache.cayenne.ObjectContext createContext​(org.apache.cayenne.DataChannel parent)
        Specified by:
        createContext in interface org.apache.cayenne.configuration.ObjectContextFactory
      • newInstance

        protected org.apache.cayenne.CayenneContext newInstance​(org.apache.cayenne.DataChannel parent,
                                                                boolean changeEventsEnabled,
                                                                boolean lifecycleEventsEnabled)