This content has been marked as final.
Show 4 replies
-
1. Re: Listing all deployed components
gjeudy Sep 4, 2008 8:37 PM (in response to viniciuscarvalho.viniciusccarvalho.gmail.com)No easy way that I know of. Maybe try:
org.jboss.seam.contexts.Lifecycle.getApplication()
?This returns a map of componentname-component definitions
-
2. Re: Listing all deployed components
israeldl Sep 5, 2008 12:12 AM (in response to viniciuscarvalho.viniciusccarvalho.gmail.com)Vinicius,
new Contexts().getApplicationContext().getNames();
acho que funciona...
-
3. Re: Listing all deployed components
viniciuscarvalho.viniciusccarvalho.gmail.com Sep 5, 2008 1:04 PM (in response to viniciuscarvalho.viniciusccarvalho.gmail.com)This is for Application Context only, I could use one for each context, but that is not what I'm looking for. I would like to know each component deployed. Checking the contexts would only show me the active components.
Also, thanks for posting in portuguese, but please remember this is an english forum, please avoid this next time.
-
4. Re: Listing all deployed components
pmuir Sep 8, 2008 2:18 PM (in response to viniciuscarvalho.viniciusccarvalho.gmail.com)List<String> componentClassNames = new ArrayList<String>; for (String name : Contexts().getApplicationContext().getNames()) { if (name.endsWith(".component")) { componentClassNames.add(name); } }