[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1127) Allow inspection of all installed components

Mike Quilleash (JIRA) jira-events at lists.jboss.org
Sun May 6 13:55:52 EDT 2007

    [ http://jira.jboss.com/jira/browse/JBSEAM-1127?page=comments#action_12361580 ] 
Mike Quilleash commented on JBSEAM-1127:

I would argue this is a bad way to get this information.

1) It's very slow, the scanner will go through all the jar files to build the component list.
2) It returns Classes rather than Component, Component has more info potentially.
3) Because it returns classes there is no way to distinguish between multiple instances of a class.  e.g.  MangedHibernateSession does not have a @Name as it is normally configured via components.xml.
4) It will not pick up components installed via components.xml at all as they do not have @Name annotations.

> Allow inspection of all installed components
> --------------------------------------------
>                 Key: JBSEAM-1127
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1127
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: Core
>    Affects Versions: 1.1.6.GA
>         Environment: Any
>            Reporter: Mike Quilleash
> Add a method, probably to Component, to allow the installed components to be queried.
> Could either scan the application context for "*.component" or just build a list during initialisation and return it.
> public static List< Component > getInstalledComponents()
> {
>    // TODO:
> }

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list