Skip to content

wjoel/clj-bean

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

clj-bean

The better way to create JavaBeans from Clojure.

A tiny library to create standards compliant JavaBeans with good performance. Supports primitive types and has the API you always wanted.

Usage

(defbean your.java.package.MyBean
  [[long timestamp]
   [String channel]
   [String title]
   [String diffUrl]
   [String user]
   [long byteDiff]
   [String summary]
   [boolean minor]
   [boolean new]
   [boolean unpatrolled]
   [boolean botEdit]
   [boolean special]
   [boolean talk]])

Get it from Clojars or The Central Repository at

[com.wjoel/clj-bean "0.2.1"]

Note that you need to use an AOT-compiled namespace with defbean to generate the necessary Java class files.

License

Copyright © 2017 Joel Wilsson

Distributed under the MIT license.

About

The better way to create JavaBeans from Clojure.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published