Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Add API to list running modules and their dependencies #4823

Open
CeylonMigrationBot opened this issue Nov 13, 2012 · 7 comments
Open

Add API to list running modules and their dependencies #4823

CeylonMigrationBot opened this issue Nov 13, 2012 · 7 comments
Milestone

Comments

@CeylonMigrationBot
Copy link

[@FroMage] We're thinking of adding a CRaSH (http://www.crashub.org/) module to be able to attach to a running Ceylon VM (JVM) and list the available modules and their dependencies, but we need to find a way to get that list from a JVM agent. JMX, static somewhere, whatever.

@alesj: any idea? Do we already have something? This might be reusable for JBoss Modules beyond just Ceylon too.

[Migrated from ceylon/ceylon-runtime#28]

@CeylonMigrationBot
Copy link
Author

[@alesj]
@dmlloyd does JBoss Modules already expose any MBeans?

@CeylonMigrationBot
Copy link
Author

[@dmlloyd] Yes, it does, under jboss.modules I believe.

@CeylonMigrationBot
Copy link
Author

[@FroMage] @vietj: is that enough to get started?

@CeylonMigrationBot
Copy link
Author

[@vietj] The static method : java.lang.management.ManagementFactory.getPlatformMBeanServer() should do the work .

@CeylonMigrationBot
Copy link
Author

[@vietj] Beside that you can also access the java.lang.Instrument object in a command too that gives you access to all the Class known by the JVM (hence the classloader as well).

@CeylonMigrationBot
Copy link
Author

[@FroMage] Moving to M6, this will be part of the metadata API anyways.

@CeylonMigrationBot
Copy link
Author

[@FroMage] Not part, but required.

@CeylonMigrationBot CeylonMigrationBot added this to the 1.3 milestone Nov 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant