• Intro Headers Instructions Macros Commands
  • Fork me on GitHub
    • Introduction
    • How to install bnd
    • Guided Tour
    • Guided Tour Workspace & Projects
    • Concepts
    • Best practices
    • Build
    • Project Setup
    • Generating JARs
    • Versioning
    • Baselining
    • Service Components
    • Metatype
    • Contracts
    • Bundle Annotations
    • Accessor Properties
    • SPI Annotations
    • Resolving Dependencies
    • Launching
    • Startlevels
    • Testing
    • Testing with Launchpad
    • Packaging Applications
    • JPMS Libraries
    • Wrapping Libraries to OSGi Bundles
    • Generating Documentation
    • Commands
    • For Developers
    • Tips for Windows users
    • Tools bound to bnd
    • Headers
    • Instruction Reference
    • Instruction Index
    • Macro Reference
    • Macro Index
    • Plugins
    • External Plugins
    • Settings
    • Errors
    • Warnings
    • Frequently Asked Questions
  • -cdiannotations SELECTORS

    The -cdiannotations instruction tells bnd which bundle classes, if any, to search for OSGI CDI Integration (or plain CDI) annotations. bnd will then process those classes into requirements and capabilities.

    The value of this instruction is a comma delimited list of globs matching packages or classes by fully qualified name.

    The default value of this instruction is *, which means that by default bnd will process all bundle classes looking for OSGI CDI Integration (or plain CDI) annotations.

    discover

    Each glob may specify the discover attribute which determines the bean discovery mode to apply to matches.

    The following discover modes are supported:

    discover Bean Discovery Mode
    all include all classes in the bundle as CDI beans
    annotated include classes annotated with bean defining annotations as CDI beans
    annotated_by_bean (default) include classes annotated with org.osgi.service.cdi.annotations.Bean or classes in packages annotated with org.osgi.service.cdi.annotations.Beans as CDI beans. This is the default mode when discover is not specified.
    none do not include any classes in the bundle as CDI beans
    -cdiannotations: *;discover=all
    
    noservicecapabilities

    Each glob may specify the noservicecapabilities attribute which indicates that no service capabilities will be added for matches.

    -cdiannotations: *;discover=annotated;noservicecapabilities=true
    
    noservicerequirements

    Each glob may specify the noservicerequirements attribute which indicates that no service requirements will be added for matches.

    -cdiannotations: *;noservicerequirements=true
    

    source

    • GitHub