[jboss-jira] [JBoss JIRA] (DROOLS-1141) KieScanner: add support for listeners
Marek Winkler (JIRA)
issues at jboss.org
Wed Apr 27 08:56:00 EDT 2016
[ https://issues.jboss.org/browse/DROOLS-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197782#comment-13197782 ]
Marek Winkler commented on DROOLS-1141:
---------------------------------------
Something similar to the following(?):
{code}
public interface ScanEventListener {
void beforeScan();
void afterScan(AfterScanEvent event);
}
public interface AfterScanEvent {
List<ReleaseId> getUpdatedArtifacts();
// alternatively? Map<DependencyDescriptor, Artifact> getUpdatedArtifacts();
}
{code}
> KieScanner: add support for listeners
> -------------------------------------
>
> Key: DROOLS-1141
> URL: https://issues.jboss.org/browse/DROOLS-1141
> Project: Drools
> Issue Type: Feature Request
> Components: core engine
> Affects Versions: 6.4.0.Final
> Reporter: Marek Winkler
> Assignee: Mario Fusco
>
> For testing purposes, it could be handy to allow user to register listeners to KieScanner. We were thinking about the following events:
> - beforeScan
> - afterScan
> The afterScan method could receive an Event object as a parameter describing what was actually updated during the scan (e.g., what artifacts to which versions?), probably a {{ReleaseId}}?
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list