Skip to content
/ dbc4j Public

Library to apply Design By Contract on plain Java projects

License

Notifications You must be signed in to change notification settings

UniKnow/dbc4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is dcb4java

dbc4java is a pragmatic and extensible general purpose validation framework for any kind of java objects and allows you:

  • to easily validate objects on demand
  • to specify constraints for class fields and methods.
    • specifying constraints for method parameters that are automatically checked when a method is called (pre-conditions).
    • requiring a certain object state before a method is called (pre-conditions).
    • enforcing object validation after an object has been created (invariants).
    • enforcing object validation after a method on an object has been called (invariants).
    • specifying constraints for a method's return value (post-conditions).
  • to configure constraints via annotations.

Within introduction design by contract we provide a deeper understanding of design by contract. The Usage dbc4spring chapter describes how the dbc4java framework can be used within your project. The Validation Constraints provides an overview of the constraint annotations that are default supported by dbc4java.

Compile

To compile dbc4java execute: mvnw clean install

To release dbc4java execute: mvnw clean deploy -P release-signed-artifacts

Packages

No packages published

Languages