0 Replies Latest reply on Jan 28, 2009 3:47 AM by Carlo de Wolf

    Inject descriptions

    Carlo de Wolf Master

      I'm separating out user configuration and system configuration in some beans.xml files, but I don't like the user configuration errors I might get.

      Right now I can do:

      <inject bean="QuartzSQLProperties"/>

      But I really would like to have:
      <inject bean="QuartzSQLProperties" description="QuartzSQLProperties is not configured, see wiki http://..."/>

      So that this:
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
      
      QuartzTimerServiceFactory
       -> QuartzSQLProperties{Configured:** NOT FOUND Depends on 'QuartzSQLProperties' **}
      
      
      *** CONTEXTS IN ERROR: Name -> Error
      
      QuartzSQLProperties -> ** NOT FOUND Depends on 'QuartzSQLProperties' **
      
      
       at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.deploy(MainDeployerImpl.java:427)
       at org.jboss.ejb3.timerservice.quartz.test.simple.unit.SimpleUnitTestCase.setUpBeforeClass(SimpleUnitTestCase.java:110)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ...

      Becomes more like this:
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
      
      QuartzTimerServiceFactory
       -> QuartzSQLProperties{Configured:** NOT FOUND Depends on 'QuartzSQLProperties' ** QuartzSQLProperties is not configured, see wiki http://...}
      
      
      *** CONTEXTS IN ERROR: Name -> Error
      
      QuartzSQLProperties -> ** NOT FOUND Depends on 'QuartzSQLProperties' **
      
      
       at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
      ...