Moose::Policy::JavaAccessors - BeCause EveryOne Loves CamelCase.
use Moose::Policy 'Moose::Policy::JavaAccessors';
has 'bar' => (is => 'rw', default => 'Foo::bar');
has 'baz' => (is => 'ro', default => 'Foo::baz');
# Foo now has (get, set)Bar methods as well as getBaz
This meta-policy changes the behavior of Moose's default behavior in regard to accessors to follow Java convention and use CamelCase.
This does a very niave conversion to CamelCase, basically it just runs ucfirst on the attribute name. Since I don't use CamelCase (at least not anymore), this is good enough. If you really want to use this, and need a more sophisicated conversion, patches welcome.