-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fcdba79
commit be51633
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |