We will need the type attribute under ejb-module and bean level.
We will need to define a new StatsProvider with just one attribute
(module-type). You could do this as an inner class (Would it be in
MonitoringRegistryMediator?). In the above case, we will need this attribute
under 'RosterAppEjb\.jar'. The type would say, if it is a 'standalone ejb' or an
'ejb'. Pick the constants that Deployment or ejb-container might already be using.
standalone module (jar)
Same as in ear. Need a type attribute under 'RosterAppEjb\.jar'
We will need an attribute called type (bean-type). This should be easy, since
you already have a StatsProvider for a bean which has some existing attributes.
The bean-type should say what type of bean it is.
I think it should be in EJBStatsProvider (define type as new attribute and set
the type value when you are instantiating one of the derived classes).