Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-28171

PersistenceManager should automatically registerClassAliases for NavigationStack and ViewDescriptor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Mobile: ViewNavigator
    • None
    • Language Found: English

    Description

      For PersistenceManager to work, developers must register class aliases for ViewDescriptor and NavigationStack. Since these are private Classes, there is no easy way for a developer to do this in a spark application. PersistenceManager should do this automatically internally before load or save since its required for it to work with any ViewNavigator.

      Workaround (if any):
      Developer has to write code like this, but automatic imports won't work in Builder since classes are private.

      import spark.components.supportClasses.ViewDescriptor;
      import spark.components.supportClasses.NavigationStack;

      protected function initializeHandler():void

      { // Register the class aliases that will be saved registerClassAlias("ViewDescriptor", ViewDescriptor); registerClassAlias("NavigationStack", NavigationStack); }

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: