use of org.jboss.as.pojo.service.DescribedPojoPhase in project wildfly by wildfly.
the class ParsedKernelDeploymentProcessor method describeBean.
protected void describeBean(final Module module, final ServiceTarget serviceTarget, DeploymentReflectionIndex deploymentIndex, BeanMetaDataConfig beanConfig) {
final BeanState state = BeanState.NOT_INSTALLED;
final ServiceName describedServiceName = BeanMetaDataConfig.toBeanName(beanConfig.getName(), state.next());
final DescribedPojoPhase describedService = new DescribedPojoPhase(deploymentIndex, beanConfig);
final ServiceBuilder describedServiceBuilder = serviceTarget.addService(describedServiceName, describedService);
describedService.registerAliases(describedServiceBuilder);
final ConfigVisitor visitor = new DefaultConfigVisitor(describedServiceBuilder, state, module, deploymentIndex);
beanConfig.visit(visitor);
describedServiceBuilder.setInitialMode(beanConfig.getMode().getMode());
describedServiceBuilder.install();
}
Aggregations