[weld-issues] [JBoss JIRA] Created: (CDI-35) add support for 'optional' beans

Mark Struberg (JIRA) jira-events at lists.jboss.org
Wed Jan 12 08:14:51 EST 2011


add support for 'optional' beans
--------------------------------

                 Key: CDI-35
                 URL: https://issues.jboss.org/browse/CDI-35
             Project: CDI Specification Issues
          Issue Type: Feature Request
            Reporter: Mark Struberg


sometimes it's neat to mark a bean as @Optional depending if a specified class can get loaded or not.

This is a simple way to implement deployment specific functionality. 

An example would be a BvalSupportBean which only should become active if the JSR-303 bean validation API can be found on the classpath. 

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list