CDI Openwebbeans - how to exclude some packages from scanning?

700 Views Asked by At

Environment : IBM WAS 8.0, CDI 1.0 Implementation : OpenWebBeans

How can i exclude few packages from getting scanned at server startup?

is there any CDI extension available or customized extension needs to be written for that ?

1

There are 1 best solutions below

2
On

Excluding packages from scanning is supported in OpenWebBeans-1.2.x and OpenWebBeans-1.5.x. This will not help you much for WAS.

If your problem is performance then afaik there is no solution for WAS. If the problem is that one of those classes crashes your bootstrap then you could write an own CDI Extension which uses ProcessAnnotatedType and call veto() for those classes. This will stop the class from further being processed by CDI.