Example usage for org.springframework.util ClassUtils isCglibProxy

List of usage examples for org.springframework.util ClassUtils isCglibProxy

Introduction

In this page you can find the example usage for org.springframework.util ClassUtils isCglibProxy.

Prototype

@Deprecated
public static boolean isCglibProxy(Object object) 

Source Link

Document

Check whether the given object is a CGLIB proxy.

Usage

From source file:com.frank.search.solr.server.support.SolrClientUtils.java

private static String getSolrClientTypeName(SolrClient solrClient) {
    Class<?> solrClientType = ClassUtils.isCglibProxy(solrClient) ? ClassUtils.getUserClass(solrClient)
            : solrClient.getClass();//from ww w  .  j a v a 2  s.  com
    String shortName = ClassUtils.getShortName(solrClientType);
    return shortName;
}

From source file:org.springframework.data.solr.server.support.SolrServerUtils.java

private static String getSolrServerTypeName(SolrServer solrServer) {
    Class<?> solrServerType = ClassUtils.isCglibProxy(solrServer) ? ClassUtils.getUserClass(solrServer)
            : solrServer.getClass();//w  w  w  .j a  v a  2s.co m
    String shortName = ClassUtils.getShortName(solrServerType);
    return shortName;
}