Skip to content

A library for allowing loose annotation of Bean-like properties and their getter/setter methods without explicit method-to-field conventions

License

Notifications You must be signed in to change notification settings

hanseltime/LooseBeans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();
    }
}

About

A library for allowing loose annotation of Bean-like properties and their getter/setter methods without explicit method-to-field conventions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages