@Override public String toString() { Location location = proxyFactory.getMethodLocation(method); return location.toString(); }
@Override public String toString() { return proxyFactory.getMethodLocation(bindMethod).toString(); } };
@Override public String getDescription() { return proxyFactory.getMethodLocation(bindMethod).toString(); } };
@Override public String toString() { return proxyFactory.getMethodLocation(bindMethod).toString(); } };
@Override public String getDescription() { return proxyFactory.getMethodLocation(bindMethod).toString(); } };
@Override public String toString() { Location location = proxyFactory.getMethodLocation(method); return location.toString(); }
@Override public String getDescription() { return String.format("Reloadable %s via %s", serviceImplementationClass.getName(), proxyFactory.getMethodLocation(bindMethod)); }
@Override public String getDescription() { return String.format("Reloadable %s via %s", serviceImplementationClass.getName(), proxyFactory.getMethodLocation(bindMethod)); }
@Override public String getDescription() { return String.format("%s via %s", proxyFactory.getConstructorLocation(constructor), proxyFactory.getMethodLocation(bindMethod)); } };
@Override public String getDescription() { return String.format("%s via %s", proxyFactory.getConstructorLocation(constructor), proxyFactory.getMethodLocation(bindMethod)); } };
/** * Converts a method to a user presentable string using a {@link PlasticProxyFactory} to obtain a {@link Location} * (where possible). {@link #asString(Method)} is used under the covers, to present a detailed, but not excessive, * description of the class, method and parameters. * * @param method * method to convert to a string * @param proxyFactory * used to obtain the {@link Location} * @return the method formatted for presentation to the user */ public static String asString(Method method, PlasticProxyFactory proxyFactory) { Location location = proxyFactory.getMethodLocation(method); return location != null ? location.toString() : asString(method); }
/** * Converts a method to a user presentable string using a {@link PlasticProxyFactory} to obtain a {@link Location} * (where possible). {@link #asString(Method)} is used under the covers, to present a detailed, but not excessive, * description of the class, method and parameters. * * @param method * method to convert to a string * @param proxyFactory * used to obtain the {@link Location} * @return the method formatted for presentation to the user */ public static String asString(Method method, PlasticProxyFactory proxyFactory) { Location location = proxyFactory.getMethodLocation(method); return location != null ? location.toString() : asString(method); }
/** * @param classAdapter defines the bean that contains the properties * @param propertyNames the initial set of property names, which will be rebuilt in the correct order */ private void orderProperties(ClassPropertyAdapter classAdapter, List<String> propertyNames) { List<PropertyOrder> properties = CollectionFactory.newList(); for (String name : propertyNames) { PropertyAdapter pa = classAdapter.getPropertyAdapter(name); Method readMethod = pa.getReadMethod(); Location location = readMethod == null ? null : proxyFactory.getMethodLocation(readMethod); int line = location == null ? -1 : location.getLine(); properties.add(new PropertyOrder(name, computeDepth(pa), line)); } Collections.sort(properties); propertyNames.clear(); for (PropertyOrder po : properties) { propertyNames.add(po.propertyName); } }