classutil

A library for fast runtime class-querying, and more

License

License

BSD New
Categories

Categories

Net
GroupId

GroupId

net.ruippeixotog
ArtifactId

ArtifactId

classutil_2.11
Last Version

Last Version

1.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

classutil
A library for fast runtime class-querying, and more
Project URL

Project URL

http://software.clapper.org/classutil/
Project Organization

Project Organization

net.ruippeixotog
Source Code Management

Source Code Management

https://github.com/ruippeixotog/classutil

Download classutil_2.11

How to add to project

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

Dependencies

compile (6)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.4
org.ow2.asm : asm jar 5.0.2
org.ow2.asm : asm-commons jar 5.0.2
org.ow2.asm : asm-util jar 5.0.2
org.clapper : grizzled-scala_2.11 jar 1.2
org.clapper : grizzled-slf4j_2.11 jar 1.0.2

test (2)

Group / Artifact Type Version
org.scalatest : scalatest_2.11 jar 2.1.3
org.scala-lang : scala-actors jar 2.11.4

Project Modules

There are no modules declared in this project.

classutil: Fast class finder utilities, plus some extras

Introduction

The org.clapper.classutil (ClassUtil) library is a Scala package that provides various class location and class generation capabilities, including:

  • Methods to locate and filter classes quickly, at runtime—more quickly, in fact, than can be done with the JVM's runtime reflection capabilities.
  • Methods for converting Scala maps into Java Beans, on the fly—which can be useful when generating data for use with APIs (e.g., template APIs) that accept Java Beans, but not maps.

Under the covers, ClassUtil uses the ASM bytecode library, though it can be extended to use a different byte code library.

ClassUtil is fast for several reasons:

  • A bytecode library like ASM loads compiled bytecode without using a JVM class loader. So, it avoids all the class loader's overhead.
  • ClassUtil's class-finder methods load and return information about classes using an efficient lazy iterator, which offers minimal startup penalty and the ability to cut the traversal short.

ClassUtil is copyright © 2010-2011 Brian M. Clapper and is released under a new BSD license.

Versions

Version
1.0.5