Skip to content

Fork of Custis' Beanpath: migration to ByteBuddy

License

Notifications You must be signed in to change notification settings

tongohiti/beanpath

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beanpath

Staticly checked Java Bean property paths to be used instead of string literals.

Eg:

Account account = root(Account.class);
BeanPath<String> customerNameProp = $( account.getCustomer().getName() );
// then customerNameProp.toDotDelimitedString() => "customer.name"

The core idea is to use runtime proxies to capture method (as in mock frameworks).

See more examples and some explanation in BeanPathMagicTest.

More info on Habrahabr [ru]

About

Fork of Custis' Beanpath: migration to ByteBuddy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%