[jboss-jira] [JBoss JIRA] (DROOLS-732) Extract objects from handles in a type-safe way
Mario Fusco (JIRA)
issues at jboss.org
Mon Mar 2 03:15:51 EST 2015
[ https://issues.jboss.org/browse/DROOLS-732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-732.
--------------------------------
Resolution: Done
Implemented with https://github.com/droolsjbpm/drools/commit/790d92d0e3e1e91ee1aa516cf8adf26eaa7e343b
> 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