Blueprint Developer Manual / Version 2010
Table Of ContentsWhen handing over personal data to third-party dependencies, you will most likely get a compile time error raised by the . You have two options then: Either suppress the check as stated in the Javadoc or add so-called stub classes as described in The Manual.
already comes with some pre-defined stub classes. But they may not be sufficient for your needs. Adding your own stub classes can extend or even override the pre-defined stub classes as your explicitly mentioned stubs have a higher priority. And more: You may add stub classes for CoreMedia API as well.
To add custom stubs, just extend the annotation processor arguments in the
profile. In the example Example 4.22, “Adding custom stub classes” you see
how you may add two directories which will then be scanned for files named
*.astub
. Using ${path.separator}
ensures that your path will work across multiple platforms.
<profile> <id>checkPersonalData</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <executions> <execution> <id>default-compile</id> <!-- ... --> <configuration> <compilerArgs> <!-- ... --> <arg>-Astubs=/stubs/a${path.separator}/stubs/b</arg> </compilerArgs> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile>
Example 4.22. Adding custom stub classes