Author: tchemit Date: 2010-05-10 11:38:17 +0200 (Mon, 10 May 2010) New Revision: 1843 Url: http://nuiton.org/repositories/revision/nuiton-utils/1843 Log: add getSourcetype and getTargetType on Binder Modified: trunk/src/main/java/org/nuiton/util/beans/Binder.java Modified: trunk/src/main/java/org/nuiton/util/beans/Binder.java =================================================================== --- trunk/src/main/java/org/nuiton/util/beans/Binder.java 2010-05-09 12:34:42 UTC (rev 1842) +++ trunk/src/main/java/org/nuiton/util/beans/Binder.java 2010-05-10 09:38:17 UTC (rev 1843) @@ -108,6 +108,24 @@ protected BinderModel<I, O> model; /** + * Obtains the type of the source bean. + * + * @return the type of the source bean + */ + public Class<I> getSourceType() { + return getModel().getSourceType(); + } + + /** + * Obtains the type of the target bean. + * + * @return the type of the target bean + */ + public Class<O> gettargetType() { + return getModel().getTargetType(); + } + + /** * Obtain from the given object all properties registred in the binder * model. * <p/>
participants (1)
-
tchemit@users.nuiton.org