Kuali Jute

Kuali Jute - Small library providing a few key application building blocks. Heavily influenced by the Guava team's approach to interacting with the Java language.

License

License

GroupId

GroupId

org.kuali.common
ArtifactId

ArtifactId

kuali-jute
Last Version

Last Version

1.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

Kuali Jute
Kuali Jute - Small library providing a few key application building blocks. Heavily influenced by the Guava team's approach to interacting with the Java language.
Project URL

Project URL

http://site.kuali.org/common/kuali-jute/1.0.5
Project Organization

Project Organization

The Kuali Foundation
Source Code Management

Source Code Management

https://github.com/KualiCo/jute/tree/kuali-jute-1.0.5

Download kuali-jute

How to add to project

<!-- https://jarcasting.com/artifacts/org.kuali.common/kuali-jute/ -->
<dependency>
    <groupId>org.kuali.common</groupId>
    <artifactId>kuali-jute</artifactId>
    <version>1.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.kuali.common/kuali-jute/
implementation 'org.kuali.common:kuali-jute:1.0.5'
// https://jarcasting.com/artifacts/org.kuali.common/kuali-jute/
implementation ("org.kuali.common:kuali-jute:1.0.5")
'org.kuali.common:kuali-jute:jar:1.0.5'
<dependency org="org.kuali.common" name="kuali-jute" rev="1.0.5">
  <artifact name="kuali-jute" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.kuali.common', module='kuali-jute', version='1.0.5')
)
libraryDependencies += "org.kuali.common" % "kuali-jute" % "1.0.5"
[org.kuali.common/kuali-jute "1.0.5"]

Dependencies

compile (5)

Group / Artifact Type Version
org.apache.commons : commons-lang3 jar 3.3.2
com.google.guava : guava jar 18.0
com.google.inject : guice jar 4.0-beta5
com.fasterxml.jackson.core : jackson-databind jar 2.5.0
com.fasterxml.jackson.datatype : jackson-datatype-guava jar 2.5.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

Jute: Java essentials

Build Status

  • Jute - a durable fiber spun together with other ingredients to form high strength rope

Summary

Highlights

  • VirtualSystem - immutable, strongly typed, object containing system level information
  • system properties and environment variables
  • encoding/character set
  • user
  • timezone
  • locale
  • java version
  • For example, to find the home directory for the user the JVM is running as:
File home = VirtualSystem.build().getUser().getHome();
  • VirtualRuntime - immutable, strongly typed, object containing runtime information
  • uptime
  • memory usage
  • process id
  • system load
  • class loading statistics
  • garbage collection events
  • For example, to find how long the JVM has been running:
long uptime = VirtualRuntime.build().getUptime().getElapsed();
  • Environment - abstraction for locating string values (typically used to override a default value)
  • Encryptor - password based encryption using AES 128, fully compatible with OpenSSL
  • JsonService - easily read/write data structures as JSON via Jackson
  • Precondition - argument checking with meaningful error messages

Dependency Injection

  • Guice Modules capable of wiring everything together via dependency injection are included
  • For example, if you need to encrypt a string and convert it to JSON
List<AbstractModule> modules = Lists.newArrayList();
modules.add(new SystemModule());
modules.add(new EnvModule());
modules.add(new OpenSSLModule());
modules.add(new JacksonModule());
Injector injector = Guice.createInjector(modules);
Encryptor enc = injector.createInstance(Encryptor.class);
JsonService json = injector.createInstance(JsonService.class);

String plaintext = "foobar";
String encrypted = enc.encrypt(plaintext);
String asJson = json.writeString(encrypted);
org.kuali.common

KualiCo

KualiCo

Versions

Version
1.0.5
1.0.4
1.0.1