* EAR).
* @return a BeanNamingInfo instance
*/
public static BeanNamingInfo buildInfo(final EasyBeansEjbJarClassMetadata beanClassMetadata, final String interfaceName,
final String mode, final String javaEEApplicationName) {
IJCommonBean commonBean = beanClassMetadata.getJCommonBean();
BeanNamingInfo beanNamingInfo = new BeanNamingInfo();
beanNamingInfo.setName(commonBean.getName());
beanNamingInfo.setBeanClassName(beanClassMetadata.getClassName());
beanNamingInfo.setInterfaceName(interfaceName);
beanNamingInfo.setMode(mode);
beanNamingInfo.setMappedName(commonBean.getMappedName());
beanNamingInfo.setJavaEEApplicationName(javaEEApplicationName);
return beanNamingInfo;
}