public CvClass2Source( Class clazz ) { this.clazz = CgLibUtil.removeCglibEnhanced(clazz); this.parentNodeName = null; }
public CvClass2Source( Class clazz, String parentNodeName ) { this.clazz = CgLibUtil.removeCglibEnhanced(clazz); this.parentNodeName = parentNodeName; }
public CvClass2Source( Class clazz, String parentNodeName ) { this.clazz = CgLibUtil.removeCglibEnhanced(clazz); this.parentNodeName = parentNodeName; }
public CvClass2Source( Class clazz ) { this.clazz = CgLibUtil.removeCglibEnhanced(clazz); this.parentNodeName = null; }
public CvClass2Source( Class clazz ) { this.clazz = CgLibUtil.removeCglibEnhanced(clazz); this.parentNodeName = null; }
public CvClass2Source( Class clazz, String parentNodeName ) { this.clazz = CgLibUtil.removeCglibEnhanced(clazz); this.parentNodeName = parentNodeName; }
protected static String normalizeClassName(Class clazz) { Class realClass = CgLibUtil.removeCglibEnhanced(clazz); return realClass.getSimpleName(); //return clazz.getSimpleName(); } }
/** * Gives the Object classname, give the real object class name if this is a VirtualProxy class * * @param obj the object for which we request the real class name. * * @return the real class name. */ public static <T> Class<T> getRealClassName( T obj ) { return removeCglibEnhanced( obj.getClass() ); }
public ReportedIntactObject(IntactObject intactObject) { this.ac = intactObject.getAc(); this.objectClass = CgLibUtil.removeCglibEnhanced(intactObject.getClass()); }
public Cache cacheFor(Class<?> aoClass) { if (cacheMap.containsKey(aoClass)) { return cacheMap.get(aoClass); } String cacheName; if (Interactor.class.isAssignableFrom(aoClass)) { cacheName = Interactor.class.getName(); } else if (CvObject.class.isAssignableFrom(aoClass)) { cacheName = CvObject.class.getName(); } else { cacheName = CgLibUtil.removeCglibEnhanced(aoClass).getName(); } Cache cache = cacheManager.getCache(cacheName); if (cache == null) { throw new RuntimeException("Cache not found: " + cacheName); } cacheMap.put(aoClass, cache); return cache; }
/** * Gets the generic Xref type for an AnnotatedObject class * @param clazz an AnnotatedObject class * @return the Xref type used in the class */ public static Class<? extends Xref> getXrefClassType(Class<? extends AnnotatedObject> clazz) { clazz = CgLibUtil.removeCglibEnhanced(clazz); PropertyDescriptor propDesc = null; try { propDesc = new PropertyDescriptor("xrefs", clazz); } catch (IntrospectionException e) { e.printStackTrace(); } Method method = propDesc.getReadMethod(); return getParameterizedType(method.getGenericReturnType()); }
/** * Gets the generic Xref type for an AnnotatedObject class * @param clazz an AnnotatedObject class * @return the Xref type used in the class * * @since 1.6.1 */ public static Class<? extends Alias> getAliasClassType(Class<? extends AnnotatedObject> clazz) { clazz = CgLibUtil.removeCglibEnhanced(clazz); PropertyDescriptor propDesc = null; try { propDesc = new PropertyDescriptor("aliases", clazz); } catch (IntrospectionException e) { e.printStackTrace(); } Method method = propDesc.getReadMethod(); return getParameterizedType(method.getGenericReturnType()); }
protected void writeCvTerm( Writer out, CvObject cv, String indent ) throws IOException { String title = cvtype2name.get( CgLibUtil.removeCglibEnhanced( cv.getClass() ) ); if ( title == null ) { throw new IllegalStateException( "No title has been assigned to CV type: " + cv.getClass().getName() ); } String sl = cv.getShortLabel(); String fn = escapeXml( cv.getFullName() ); writeField( out, title, sl, indent ); // write fullname only if different from shortlabel and not null. if ( !sl.equals( fn ) ) { if ( fn != null && fn.length() > 0 ) { writeField( out, title, fn, indent ); } } String mi = getMiReference( cv ); if ( mi != null ) { writeField( out, title, mi, indent ); } }