Get the bean information of a type.

@param c The type to get the bean information of.
@return The BeanInfo of the specified type.
355987
public static BeanInfo createBeanInfo(Class<? extends Object> c) {
        BeanInfo bi = DefaultBeanInfoResolver.getBeanInfoHelper(c);
        if (bi == null) {
            bi = new ConfigBeanInfo(c);
            DefaultBeanInfoResolver.addBeanInfo(c, bi);
        }
        return bi;
    }
1248792
public <A extends Annotation> A findAnnotationOnBean(Class<A> annotationType) {
        return applicationContext.findAnnotationOnBean(beanName, annotationType);
    }
989773
private static BeanInfo getBeanInfo(Object bean)
	{
		try
		{
			return Introspector.getBeanInfo(bean.getClass());
		}
		catch (IntrospectionException exception)
		{
			// TODO: handle exception better?
			throw new RuntimeException("Error introspecting bean: " + bean, exception);
		}
	}
692109
public Object getAssociatedBean(String beanId) {
        return registeredBeans == null ? null : registeredBeans.get(beanId);
    }
112603
public static Object getBean(String name, Class requiredType) throws BeansException {
		return applicationContext.getBean(name, requiredType);
	}
1116488
public BeanO getCallbackBeanO()
    {
        BeanO result = ivCallbackBeanOStack.peek();

        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
            Tr.debug(tc, "getCallbackBeanO: " + result);
        return result;
    }
939474
public Object defineBean(String name, Object bean) {
        Object ret = getELContext().getBeans().get(name);
        getELContext().getBeans().put(name, bean);
        return ret;
    }
98188
public BeanType<ValidationMappingDescriptor> getOrCreateBean()
   {
      List<Node> nodeList = model.get("bean");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new BeanTypeImpl<ValidationMappingDescriptor>(this, "bean", model, nodeList.get(0));
      }
      return createBean();
   }
1026795
private String getTypeString(Class<?> c)
   {
      String result = TYPE_MAP.get(c);
      if (result == null)
      {
         result = c.getName();
         if (!result.endsWith(";") && !result.startsWith("["))
         {
            result = "L" + result + ";";
         }
      }
      return result;
   }
307333
public String getTypeBeanErased() {
        if (isBeanGenericType()) {
            for (int i = 0; i < bean.getTypeGenericCount(); i++) {
                if (type.equals(bean.getTypeGenericName(i, false))) {
                    return bean.getTypeGenericErased(i);
                }
            }
        }
        String generic = getTypeGenericsSimple();
        if (generic.isEmpty()) {
            return type;
        }
        StringTokenizer tkn = new StringTokenizer(generic, ",");
        List<String> altered = new ArrayList<>();
        while (tkn.hasMoreTokens()) {
            String genericType = tkn.nextToken().trim();
            String erased = genericType;
            if (bean.isTypeGenerifiedBy(genericType)) {
                for (int i = 0; i < bean.getTypeGenericCount(); i++) {
                    if (genericType.equals(bean.getTypeGenericName(i, false))) {
                        erased = bean.getTypeGenericErased(i);
                    }
                }
            }
            altered.add(erased);
        }
        return getTypeRaw() + "<" + altered.stream().collect(joining(", ")) + ">";
    }
584811
@Override
    public BeanInfo[] getAdditionalBeanInfo() {
        ArrayList<BeanInfo> bi = new ArrayList<BeanInfo>();
        BeanInfo[] biarr = null;
        try {
            for (Class<?> cl = com.l2fprod.common.swing.JCollapsiblePane.class
                    .getSuperclass(); !cl.equals(java.awt.Component.class.getSuperclass()); cl = cl
                    .getSuperclass()) {
                bi.add(Introspector.getBeanInfo(cl));
            }
            biarr = bi.toArray(new BeanInfo[]{});
        } catch (Exception e) {
            // Ignore it
        }
        return biarr;
    }
848535
public List<CmsDetailPageInfo> getInfosForType(String type) {

        return new ArrayList<CmsDetailPageInfo>(m_map.get(type));
    }
256954
@UsedByGeneratedCode
    public @Nonnull <T> T getBean(@Nullable BeanResolutionContext resolutionContext, @Nonnull Class<T> beanType) {
        ArgumentUtils.requireNonNull("beanType", beanType);
        return getBeanInternal(resolutionContext, beanType, null, true, true);
    }
402981
public static BeanDescriptor getInstance(Class<?> type) {
        BeanDescriptor bd = cache.get(type);
        if (bd == null) {
            bd = new BeanDescriptor(type);
            BeanDescriptor existing = cache.putIfAbsent(type, bd);
            if (existing != null) {
                bd = existing;
            }
        }
        return bd;
    }
363878
protected SegmentType getSegmentType(JComponent c) {
        Object      buttonType  = c.getClientProperty("JButton.buttonType");
        SegmentType segmentType = SegmentType.NONE;

        if (buttonType != null && buttonType instanceof String && ((String) buttonType).startsWith("segmented")) {
            String position = (String) c.getClientProperty("JButton.segmentPosition");

            if ("first".equals(position)) {
                segmentType = SegmentType.FIRST;
            } else if ("middle".equals(position)) {
                segmentType = SegmentType.MIDDLE;
            } else if ("last".equals(position)) {
                segmentType = SegmentType.LAST;
            }
        }

        return segmentType;
    }
223039
public CMISInfo getCMISInfo(final Class<? extends GraphObject> type) {

		try { return type.newInstance().getCMISInfo(); } catch (Throwable t) {}

		return null;
	}
1169234
public MBeanAttributeInfo[] getAttributesInfo(String domainName, String beanName) throws JMException {
		return getAttributesInfo(ObjectNameUtil.makeObjectName(domainName, beanName));
	}