Skip to content

Commit

Permalink
Added README example
Browse files Browse the repository at this point in the history
  • Loading branch information
hanseltime committed Apr 18, 2018
1 parent fcdba79 commit be51633
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit be51633

Please sign in to comment.