ejbJarMetaData.setEnterpriseBeans(new EnterpriseBeansMetaData());
ejbJarMetaData.getEnterpriseBeans().add(beanMetaData);
processClass(beanMetaData, beanClass);
AssemblyDescriptorMetaData assembly = ejbJarMetaData.getAssemblyDescriptor();
if(assembly == null)
{
assembly = new AssemblyDescriptorMetaData();
ejbJarMetaData.setAssemblyDescriptor(assembly);
}
// @DeclareRoles
SecurityRolesMetaData securityRoles = assembly.getSecurityRoles();
if(securityRoles == null)
{
securityRoles = new SecurityRolesMetaData();
assembly.setSecurityRoles(securityRoles);
}
super.processClass(securityRoles, beanClass);
// @DenyAll
ExcludeListMetaData excludes = assembly.getExcludeList();
if(excludes == null)
{
excludes = new ExcludeListMetaData();
assembly.setExcludeList(excludes);
}
super.processClass(excludes, beanClass);
// @RolesAllowed, @PermitAll
MethodPermissionsMetaData permissions = assembly.getMethodPermissions();
if(permissions == null)
{
permissions = new MethodPermissionsMetaData();
assembly.setMethodPermissions(permissions);
}
super.processClass(permissions, beanClass);
// @Interceptors
InterceptorBindingsMetaData interceptors = assembly.getInterceptorBindings();
if(interceptors == null)
{
interceptors = new InterceptorBindingsMetaData();
assembly.setInterceptorBindings(interceptors);
}
super.processClass(interceptors, beanClass);
EjbNameThreadLocal.ejbName.set(null);
}