[
https://issues.jboss.org/browse/JBIDE-8712?page=com.atlassian.jira.plugin...
]
Alexey Kazakov updated JBIDE-8712:
----------------------------------
Description:
User can define an interface annotated @MessageLogger
{code}
@MessageLogger
interface TrainSpotterLog {
@LogMessage @Message("Spotted %s diesel trains")
void dieselTrainsSpotted(int number);
}
{code}
and then just inject the bean
{code}
@Inject @Category("trains") TrainSpotterLog log;
{code}
Seam Solder will create the bean programmaticlly.
See
http://docs.jboss.org/seam/3/solder/latest/reference/en-US/html/logging.html
was:
User can define an interface annotated @MessageLogger
{code}
@MessageLogger
interface TrainSpotterLog {
@LogMessage @Message("Spotted %s diesel trains")
void dieselTrainsSpotted(int number);
}
{code}
and then just inject the bean
{code}
@Inject @Category("trains") TrainSpotterLog log
{code}
Seam Solder will create the bean programmaticlly.
See
http://docs.jboss.org/seam/3/solder/latest/reference/en-US/html/logging.html
Support @MessageLogger
----------------------
Key: JBIDE-8712
URL:
https://issues.jboss.org/browse/JBIDE-8712
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Components: cdi (jsr-299)
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Labels: new_and_noteworthy
Fix For: 3.3.x
User can define an interface annotated @MessageLogger
{code}
@MessageLogger
interface TrainSpotterLog {
@LogMessage @Message("Spotted %s diesel trains")
void dieselTrainsSpotted(int number);
}
{code}
and then just inject the bean
{code}
@Inject @Category("trains") TrainSpotterLog log;
{code}
Seam Solder will create the bean programmaticlly.
See
http://docs.jboss.org/seam/3/solder/latest/reference/en-US/html/logging.html
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira