tangentum technologies    
 

Deutsch

   
   
 
    in-class-from-package

in-class-from-package

Name

in-class-from-package -- Selects methods that are defined in a specified set of packages.

Synopsis

<... ... in-class-from-package="package-name (, package-name)*" ... />

Description

This condition-attribute evaluates to true for methods that are defined in classes which are members of one of the specified packages.

The packages are given as a comma-separated list of package-names. The order of the given package-names is not important. Each package-name should follow the conventions used for naming packages in Java.

Specifying unnamed packages: To select methods that are defined in classes which are members of an unnamed package, specify the empty string as one of the package-names.

Specifying subpackages: This predicate does not select classes from subpackages of the specified packages. To select classes from subpackages, use the predicates in-class-from-subpackage or in-class-from-package-or-subpackage respectively.

Example 1. Log methods defined in specific packages

<!-- log methods defined in the package named "com.myCompany.myPackage" -->
<log in-class-from-package="com.myCompany.myPackage"/>

<!-- log methods defined in the unnamed package -->
<log in-class-from-package=""/>

<!-- log methods defined of two packages -->
<log in-class-from-package="com.myCompany.myPackage, com.myCompany.myOtherPackage"/>

<!-- log methods defined in a given named package or the unnamed package -->
<log in-class-from-package="com.myCompany.myPackage,"/>
<!-- or -->
<log in-class-from-package=",com.myCompany.myPackage"/>