Sha256: d2d5a7954271f27a81a6d04c81453a2fccfef68310144081adac5fe1f3ba3484
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
require 'java' java_import "java.lang.System" java_import "com._5values.jndistub.LightweightJNDIContextFactory" module Reigns class JNDIContext def initialize(mappings) System.setProperty("java.naming.factory.initial", "com._5values.jndistub.LightweightJNDIContextFactory") @mappings = mappings LightweightJNDIContextFactory.set_context(self) end def lookup(name) @mappings[name] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reigns-1.0.1-java | lib/reigns/jndi_context.rb |