Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4649

Get MetaTypeInformation while bundle is starting

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • metatype-1.0.10
    • metatype-1.0.12
    • Metatype Service
    • None

    Description

      Problem
      Gathering metatype information as long as bundle is not in state Bundle.ACTIVE MetaTypeService returns null in method MetaTypeserviceImpl.getMetaTypeInformation. We'd like to have the MetatTypeInformation returned also in state Bundle.STARTING

      Solution
      Please replace the following in MediaTypeServiceimpl.java Method getMetaTypeInformation

      MediaTypeServiceimpl.java
      if ( bundle.getState() == Bundle.ACTIVE )
      {
              putMetaTypeInformationInternal( bundle, mti );
      }
      else
      {
              impl = mti;
              mti = null;
      }
      

      by

      MediaTypeServiceimpl.java
      if ( bundle.getState() == Bundle.ACTIVE || bundle.getState() == Bundle.STARTING )
      {
              putMetaTypeInformationInternal( bundle, mti );
      }
      else
      {
              impl = mti;
              mti = null;
      }
      

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            betschwa Irakli Betchvaia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: