Esempio n. 1
0
 public void validateDeployment(BeanManagerImpl manager, BeanDeployerEnvironment environment) {
   validateDecorators(manager.getDecorators(), new ArrayList<RIBean<?>>(), manager);
   validateInterceptors(manager.getInterceptors());
   validateBeans(manager.getBeans(), new ArrayList<RIBean<?>>(), manager);
   validateEnabledDecoratorClasses(manager);
   validateEnabledInterceptorClasses(manager);
   validateEnabledAlternatives(manager);
   validateDisposalMethods(environment);
   validateObserverMethods(environment.getObservers(), manager);
   validateBeanNames(manager);
 }
Esempio n. 2
0
 private void validateDisposalMethods(BeanDeployerEnvironment environment) {
   Set<DisposalMethod<?, ?>> beans = environment.getUnresolvedDisposalBeans();
   if (!beans.isEmpty()) {
     throw new DefinitionException(DISPOSAL_METHODS_WITHOUT_PRODUCER, beans);
   }
 }