From be516330a6f90bc2ea13845b4c4ba0d672c669c1 Mon Sep 17 00:00:00 2001 From: Justin Hanselman Date: Wed, 18 Apr 2018 16:39:53 -0400 Subject: [PATCH] Added README example --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 51e9004..3551f8e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,28 @@ # LooseBeans A library for allowing loose annotation of Bean-like properties and their getter/setter methods without explicit method-to-field conventions + +#Example + + //BeanLikeClass.java + public class BeanLikeClass { + + @BeanProperty( name = "vA" ) + private Object internalValueName_; + + ... + + @BeanGetter( name = "vA" ) + public void getMeaningfulNameToContext() { + + } + + } + + //BeanLikeClassBeanInfo.java + //This is in the event that the programmer chooses not to extend directly + public class BeanLikeClassBeanInfo extends LooseBeanInfo< BeanLikeClass > { + //Trivial extension that will aggregate all getters and setters that obey LooseBean or Bean rules + BeanLikeClassBeanInfo() { + super(); + } + } \ No newline at end of file