protected void setBeanDeploymentArchivesAccessibility ( ) { for ( WeldBeanDeploymentArchive beanDeploymentArchive : beanDeploymentArchives ) { Set < WeldBeanDeploymentArchive > accessibleArchives = new HashSet <> ( ) ; for ( WeldBeanDeploymentArchive candidate : beanDeploymentArchives ) { if ( candidate . equals ( beanDeploymentArchive ) ) { continue ; } accessibleArchives . add ( candidate ) ; } beanDeploymentArchive . setAccessibleBeanDeploymentArchives ( accessibleArchives ) ; } }
By default all bean archives see each other .