[jboss-jira] [JBoss JIRA] (DROOLS-732) Extract objects from handles in a type-safe way

Davide Sottara (JIRA) issues at jboss.org
Sun Mar 1 15:22:49 EST 2015


Davide Sottara created DROOLS-732:
-------------------------------------

             Summary: Extract objects from handles in a type-safe way
                 Key: DROOLS-732
                 URL: https://issues.jboss.org/browse/DROOLS-732
             Project: Drools
          Issue Type: Enhancement
            Reporter: Davide Sottara
            Assignee: Davide Sottara
            Priority: Minor


The (Internal)FactHandle interface exposes a generic method 
{code} public Object getObject() {code}

It should expose another method that wraps an internal cast
{code} public <K> K as( Class<K> klass ) throws CCE {code}

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



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list