Commit 0037d0d086ca447c7d9fb45c7e1292a375923db1
Exists in
master
Merge branch '2.4.0' of git@github.com:demoiselle/framework.git into 2.4.0
Showing
4 changed files
with
53 additions
and
3 deletions
Show diff stats
documentation/reference/pt-BR/authorgroup.xml
@@ -7,6 +7,10 @@ | @@ -7,6 +7,10 @@ | ||
7 | <surname>Sacramento</surname> | 7 | <surname>Sacramento</surname> |
8 | </author> | 8 | </author> |
9 | <author> | 9 | <author> |
10 | + <firstname>Danilo</firstname> | ||
11 | + <surname>Viana</surname> | ||
12 | + </author> | ||
13 | + <author> | ||
10 | <firstname>Emerson</firstname> | 14 | <firstname>Emerson</firstname> |
11 | <surname>Oliveira</surname> | 15 | <surname>Oliveira</surname> |
12 | </author> | 16 | </author> |
documentation/reference/pt-BR/controlador.xml
@@ -8,12 +8,13 @@ | @@ -8,12 +8,13 @@ | ||
8 | <para> | 8 | <para> |
9 | No <emphasis>Demoiselle Framework</emphasis> os controladores ou controllers servem para identificar as camadas da | 9 | No <emphasis>Demoiselle Framework</emphasis> os controladores ou controllers servem para identificar as camadas da |
10 | arquitetura de sua aplicação. É comum que as aplicações utilizem apenas três camadas: visão, negócio e persistência. | 10 | arquitetura de sua aplicação. É comum que as aplicações utilizem apenas três camadas: visão, negócio e persistência. |
11 | - Existem aplicações que utilizam fachadas. Por esse motivo, foram implementados nessa versão do framework quatro controllers: | 11 | + Existem aplicações que utilizam fachadas. Por esse motivo, foram implementados nessa versão do framework cinco controllers: |
12 | <itemizedlist> | 12 | <itemizedlist> |
13 | <listitem><para><literal>ViewController</literal></para></listitem> | 13 | <listitem><para><literal>ViewController</literal></para></listitem> |
14 | <listitem><para><literal>FacadeController</literal></para></listitem> | 14 | <listitem><para><literal>FacadeController</literal></para></listitem> |
15 | <listitem><para><literal>BusinessController</literal></para></listitem> | 15 | <listitem><para><literal>BusinessController</literal></para></listitem> |
16 | <listitem><para><literal>PersistenceController</literal></para></listitem> | 16 | <listitem><para><literal>PersistenceController</literal></para></listitem> |
17 | + <listitem><para><literal>ManagementController</literal></para></listitem> | ||
17 | </itemizedlist> | 18 | </itemizedlist> |
18 | </para> | 19 | </para> |
19 | <!-- TODO: incluir exemplos de códigos usando os controladores citados acima --> | 20 | <!-- TODO: incluir exemplos de códigos usando os controladores citados acima --> |
documentation/reference/pt-BR/properties.xml
@@ -260,6 +260,50 @@ | @@ -260,6 +260,50 @@ | ||
260 | </tbody> | 260 | </tbody> |
261 | </tgroup> | 261 | </tgroup> |
262 | </table> | 262 | </table> |
263 | + <table> | ||
264 | + <title>Configurações da extensão JMX</title> | ||
265 | + <tgroup cols="3"> | ||
266 | + <colspec align="left"/> | ||
267 | + <colspec align="left"/> | ||
268 | + <colspec align="right"/> | ||
269 | + | ||
270 | + <thead> | ||
271 | + <row valign="top"> | ||
272 | + <entry><emphasis role="bold">Propriedade</emphasis></entry> | ||
273 | + <entry><emphasis role="bold">Descrição</emphasis></entry> | ||
274 | + <entry><emphasis role="bold">Valor padrão</emphasis></entry> | ||
275 | + </row> | ||
276 | + </thead> | ||
277 | + <tbody> | ||
278 | + <row valign="top"> | ||
279 | + <entry>frameworkdemoiselle.management.jmx.mbean.domain</entry> | ||
280 | + <entry> | ||
281 | + <para>Define o domínio padrão onde classes anotadas com <emphasis>@ManagementController</emphasis> serão registradas no MBeanServer.</para> | ||
282 | + <para>Na especificação JMX, um MBean é registrado no MBeanServer com um nome no formato <emphasis>domain:name=MBeanName</emphasis> | ||
283 | + (ex: <emphasis>br.gov.frameworkdemoiselle.jmx:name=NotificationBroadcaster</emphasis>). Esse parâmetro controla a porção <emphasis>domain</emphasis> | ||
284 | + desse formato.</para> | ||
285 | + </entry> | ||
286 | + <entry>O pacote da classe anotada com <emphasis>@ManagementController</emphasis></entry> | ||
287 | + </row> | ||
288 | + <row valign="top"> | ||
289 | + <entry>frameworkdemoiselle.management.jmx.notification.domain</entry> | ||
290 | + <entry> | ||
291 | + <para>O mesmo que <emphasis>frameworkdemoiselle.management.jmx.mbean.domain</emphasis>, mas apenas para o domínio do | ||
292 | + MBean <emphasis role="bold">br.gov.frameworkdemoiselle.jmx.internal.NotificationBroadcaster</emphasis>. Esse MBean é automaticamente | ||
293 | + registrado para receber notificações enviadas usando a classe <emphasis role="bold">br.gov.frameworkdemoiselle.management.NotificationManager</emphasis></para> | ||
294 | + </entry> | ||
295 | + <entry>br.gov.frameworkdemoiselle.jmx</entry> | ||
296 | + </row> | ||
297 | + <row valign="top"> | ||
298 | + <entry>frameworkdemoiselle.management.jmx.notification.name</entry> | ||
299 | + <entry> | ||
300 | + <para>O nome usado para registrar a classe <emphasis role="bold">br.gov.frameworkdemoiselle.jmx.internal.NotificationBroadcaster</emphasis> como MBean.</para> | ||
301 | + </entry> | ||
302 | + <entry>NotificationBroadcaster</entry> | ||
303 | + </row> | ||
304 | + </tbody> | ||
305 | + </tgroup> | ||
306 | + </table> | ||
263 | </para> | 307 | </para> |
264 | 308 | ||
265 | <!-- <section> | 309 | <!-- <section> |
impl/extension/jmx/src/main/java/br/gov/frameworkdemoiselle/jmx/configuration/JMXConfig.java
@@ -40,6 +40,7 @@ import javax.management.NotificationBroadcaster; | @@ -40,6 +40,7 @@ import javax.management.NotificationBroadcaster; | ||
40 | 40 | ||
41 | import br.gov.frameworkdemoiselle.annotation.Name; | 41 | import br.gov.frameworkdemoiselle.annotation.Name; |
42 | import br.gov.frameworkdemoiselle.configuration.Configuration; | 42 | import br.gov.frameworkdemoiselle.configuration.Configuration; |
43 | +import br.gov.frameworkdemoiselle.stereotype.ManagementController; | ||
43 | 44 | ||
44 | @Configuration(prefix = "frameworkdemoiselle.management.jmx.") | 45 | @Configuration(prefix = "frameworkdemoiselle.management.jmx.") |
45 | public class JMXConfig { | 46 | public class JMXConfig { |
@@ -48,13 +49,13 @@ public class JMXConfig { | @@ -48,13 +49,13 @@ public class JMXConfig { | ||
48 | private String mbeanDomain; | 49 | private String mbeanDomain; |
49 | 50 | ||
50 | @Name("notification.domain") | 51 | @Name("notification.domain") |
51 | - private String notificationDomain; | 52 | + private String notificationDomain = "br.gov.frameworkdemoiselle.jmx"; |
52 | 53 | ||
53 | @Name("notification.name") | 54 | @Name("notification.name") |
54 | private String notificationMBeanName = "NotificationBroadcaster"; | 55 | private String notificationMBeanName = "NotificationBroadcaster"; |
55 | 56 | ||
56 | /** | 57 | /** |
57 | - * </p>The domain to register all {@link Managed} classes found during boot.</p> | 58 | + * </p>The domain to register all {@link ManagementController} classes found during boot.</p> |
58 | * | 59 | * |
59 | * <p>The full name of a MBean has the format of <code>domain:name=MBeanName</code> (ex: <code>br.gov.frameworkdemoiselle.jmx:name=NotificationBroadcaster</code>), this | 60 | * <p>The full name of a MBean has the format of <code>domain:name=MBeanName</code> (ex: <code>br.gov.frameworkdemoiselle.jmx:name=NotificationBroadcaster</code>), this |
60 | * parameter is the "domain" portion of the full name.</p> | 61 | * parameter is the "domain" portion of the full name.</p> |