Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-732

Extract objects from handles in a type-safe way

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • None
    • None
    • None
    • None

    Description

      The (Internal)FactHandle interface exposes a generic method

       public Object getObject() 

      It should expose another method that wraps an internal cast

       public <K> K as( Class<K> klass ) throws CCE 

      The method will perform the necessary type checks.
      The method will also work with traits, returning a proxy that
      implements the appropriate interface

      Attachments

        Activity

          People

            dsotty Davide Sottara (Inactive)
            dsotty Davide Sottara (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: