/** * Give the specified dictionary name, resolve it to a class. * * @param typeName The dictionary name to resolve. * @param pMeta The bean property we're currently parsing. * @param eType The expected type we're currently parsing. * @return The resolved class, or <jk>null</jk> if the type name could not be resolved. */ protected final ClassMeta<?> getClassMeta(String typeName, BeanPropertyMeta pMeta, ClassMeta<?> eType) { BeanRegistry br = null; // Resolve via @BeanProperty(beanDictionary={}) if (pMeta != null) { br = pMeta.getBeanRegistry(); if (br != null && br.hasName(typeName)) return br.getClassMeta(typeName); } // Resolve via @Bean(beanDictionary={}) on the expected type where the // expected type is an interface with subclasses. if (eType != null) { br = eType.getBeanRegistry(); if (br != null && br.hasName(typeName)) return br.getClassMeta(typeName); } // Last resort, resolve using the session registry. return getBeanRegistry().getClassMeta(typeName); }
/** * Give the specified dictionary name, resolve it to a class. * * @param typeName The dictionary name to resolve. * @param pMeta The bean property we're currently parsing. * @param eType The expected type we're currently parsing. * @return The resolved class, or <jk>null</jk> if the type name could not be resolved. */ protected final ClassMeta<?> getClassMeta(String typeName, BeanPropertyMeta pMeta, ClassMeta<?> eType) { BeanRegistry br = null; // Resolve via @BeanProperty(beanDictionary={}) if (pMeta != null) { br = pMeta.getBeanRegistry(); if (br != null && br.hasName(typeName)) return br.getClassMeta(typeName); } // Resolve via @Bean(beanDictionary={}) on the expected type where the // expected type is an interface with subclasses. if (eType != null) { br = eType.getBeanRegistry(); if (br != null && br.hasName(typeName)) return br.getClassMeta(typeName); } // Last resort, resolve using the session registry. return getBeanRegistry().getClassMeta(typeName); }
/** * Give the specified dictionary name, resolve it to a class. * * @param typeName The dictionary name to resolve. * @param pMeta The bean property we're currently parsing. * @param eType The expected type we're currently parsing. * @return The resolved class, or <jk>null</jk> if the type name could not be resolved. */ protected final ClassMeta<?> getClassMeta(String typeName, BeanPropertyMeta pMeta, ClassMeta<?> eType) { BeanRegistry br = null; // Resolve via @BeanProperty(beanDictionary={}) if (pMeta != null) { br = pMeta.getBeanRegistry(); if (br != null && br.hasName(typeName)) return br.getClassMeta(typeName); } // Resolve via @Bean(beanDictionary={}) on the expected type where the // expected type is an interface with subclasses. if (eType != null) { br = eType.getBeanRegistry(); if (br != null && br.hasName(typeName)) return br.getClassMeta(typeName); } // Last resort, resolve using the session registry. return getBeanRegistry().getClassMeta(typeName); }