Class AbstractReference

    • Field Detail

      • ignoreMissing

        protected final boolean ignoreMissing
      • referenceObjClass

        protected final java.lang.Class referenceObjClass
      • object

        protected java.lang.Object object
    • Constructor Detail

      • AbstractReference

        protected AbstractReference​(Datastore datastore,
                                    java.lang.Class referenceObjClass,
                                    boolean ignoreMissing)
    • Method Detail

      • get

        public final java.lang.Object get()
        Specified by:
        get in interface com.thoughtworks.proxy.kit.ObjectReference
      • set

        public final void set​(java.lang.Object arg0)
        Specified by:
        set in interface com.thoughtworks.proxy.kit.ObjectReference
      • beforeWriteObject

        protected void beforeWriteObject()
      • fetch

        protected final java.lang.Object fetch​(Key<?> id)
      • fetch

        protected abstract java.lang.Object fetch()
      • getDatastore

        public Datastore getDatastore()
        the Datastore to use when fetching this reference