immutator | Java library to create immutable version
kandi X-RAY | immutator Summary
kandi X-RAY | immutator Summary
Immutator is a Java library to create immutable version of an object run time. An immutable version of an object is a proxy object that works on the original object, transparently passing the call to the original object but throws exception whenever the code calls a method that may modify the state of the original object.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns a fluent wrapper for the given original object
- Creates an immutable copy of the given object
- Create an immutable interface using the specified interface interface
- Returns an interface immutable
- Creates a new immutable proxy instance
- Creates an immutable immutable version of the given object
- Returns true if the method accepts the return type
- Adds methods declared in the interface to the set
- Adds all methods in the interface to set
- Accepts a method
- Accepts void
immutator Key Features
immutator Examples and Code Snippets
Community Discussions
Trending Discussions on immutator
QUESTION
I just upgraded my project form JDK8 to JDK9. I use JOOQ library version 3.9.5. I now see this error when I compile.
...ANSWER
Answered 2017-Sep-22 at 07:55Apparently the jooq-codegen-maven plugin uses the JAXB API, which is found in the Java EE module java.xml.bind. However, Java EE modules are not resolved by default (and also deprecated), which explains why the JVM complains that it can't find JAXBException
.
To clarify: It's the JVM running the Maven process that is missing the dependency, not the compilation it launches!
The short term fix is to add the dependency manually with --add-modules
to the JVM executing the plugin:
- If the plugin allows forking (i.e. it can be executed in another JVM than the one running the Maven process), you might be able to add
--add-modules java.xml.bind
to it in your POM. A quick search suggest that that might not be possible. - Otherwise you need to configure the JVM running the Maven process, which you can do with the poorly documented
.mvn/jvm.config
file. Simply add such a file to the directory from which you launch the build (likely the one containing your POM) and put--add-modules java.xml.bind
in there. (Unfortunate side effect: You can no longer build with Java 8.)
For a little more details on the second approach, check this newsletter that I wrote.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install immutator
You can use immutator like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the immutator component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page