Class ModuleInstance


  • class ModuleInstance
    extends java.lang.Object
    A description of an instance of a module.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean booted
      Flag that tells whether booting of the module has completed.
      protected java.lang.String identifier
      name of module, can be null
      protected java.lang.Object instance
      The module instance
      protected java.lang.Object service
      the actual service to which I belong, could be null.
      protected java.lang.Object topLevelService
      the top-level service this module lives in, can be null or the service itself
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ModuleInstance​(java.lang.Object instance)  
      protected ModuleInstance​(java.lang.Object instance, java.lang.String identifier, java.lang.Object service, java.lang.Object topLevelService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getIdentifier()  
      protected java.lang.Object getInstance()  
      protected java.lang.Object getTopLevelService()  
      (package private) boolean isBooted()
      Check whether booting of the module has completed.
      protected boolean isTypeAndName​(PersistentService serviceType, java.lang.Class factoryInterface, java.lang.String otherCanonicalName)  
      (package private) void setBooted()
      Set a flag that indicates that booting of the module has completed.
      • Methods inherited from class java.lang.Object

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

      • instance

        protected java.lang.Object instance
        The module instance
      • identifier

        protected java.lang.String identifier
        name of module, can be null
      • topLevelService

        protected java.lang.Object topLevelService
        the top-level service this module lives in, can be null or the service itself
      • service

        protected java.lang.Object service
        the actual service to which I belong, could be null.
      • booted

        private boolean booted
        Flag that tells whether booting of the module has completed.
    • Constructor Detail

      • ModuleInstance

        protected ModuleInstance​(java.lang.Object instance,
                                 java.lang.String identifier,
                                 java.lang.Object service,
                                 java.lang.Object topLevelService)
      • ModuleInstance

        protected ModuleInstance​(java.lang.Object instance)
    • Method Detail

      • isTypeAndName

        protected boolean isTypeAndName​(PersistentService serviceType,
                                        java.lang.Class factoryInterface,
                                        java.lang.String otherCanonicalName)
      • getIdentifier

        protected java.lang.String getIdentifier()
      • getTopLevelService

        protected java.lang.Object getTopLevelService()
      • getInstance

        protected java.lang.Object getInstance()
      • setBooted

        void setBooted()
        Set a flag that indicates that booting of the module has completed.
      • isBooted

        boolean isBooted()
        Check whether booting of the module has completed.
        Returns:
        true if the module has been booted, or false otherwise