Skip to content

Commit 84f34c9

Browse files
committed
finalized auto-addition of dynamic proxy jar's
1 parent 092d6b4 commit 84f34c9

File tree

5 files changed

+34
-8
lines changed

5 files changed

+34
-8
lines changed

.gitignore

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1+
# IDE Stuff
12
.settings
2-
logs/*.log
33
settings.xml
4-
.netbeans
4+
5+
# Logs
6+
logs/*.log
7+
8+
# Test Results
59
tests/results/*
6-
modules/cbvalidation/*
10+
11+
# Dependenncies
712
coldbox/*
813
testbox/*
914
artifacts/*
1015
apidocs/docbox/*
11-
workbench/build.number
16+
workbench/*
1217
build/*

changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ CHANGELOG
33

44
## 1.4.0
55
* Updated internal core Javaloader library to latest 1.2 release
6+
* Added automatic dynamic proxy class loading
7+
* Deprecating support for cf10
68

79
## 1.3.3
810
* Cleanup of testing Application.cfc

modules/cbjavaloader/ModuleConfig.cfc

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ component {
3434
var settings = controller.getConfigSettings();
3535
// parse parent settings
3636
parseParentSettings();
37+
3738
// Bind Core JavaLoader
3839
binder.map( "jl@cbjavaloader" )
3940
.to( "#moduleMapping#.models.javaloader.JavaLoader" )
@@ -43,6 +44,7 @@ component {
4344
.initArg( name="sourceDirectories", value=settings.modules.cbjavaloader.settings.sourceDirectories )
4445
.initArg( name="compileDirectory", value=settings.modules.cbjavaloader.settings.compileDirectory )
4546
.initArg( name="trustedSource", value=settings.modules.cbjavaloader.settings.trustedSource );
47+
4648
// Load JavaLoader and class loading
4749
wirebox.getInstance( "loader@cbjavaloader" ).setup();
4850
}
@@ -62,7 +64,13 @@ component {
6264
throw( message="Invalid library path", detail="The path is #arguments.dirPath#", type="JavaLoader.DirectoryNotFoundException" );
6365
}
6466

65-
return directoryList( arguments.dirPath, true, "array", arguments.filter, "name desc" );
67+
return directoryList(
68+
arguments.dirPath,
69+
true,
70+
"array",
71+
arguments.filter,
72+
"name desc"
73+
);
6674
}
6775

6876
/**
@@ -93,6 +101,7 @@ component {
93101
if( !structKeyExists( javaLoaderDSL, "loadPaths" ) ){
94102
javaLoaderDSL.loadPaths = [];
95103
}
104+
96105
// Array of locations
97106
if( isArray( javaLoaderDSL.loadPaths ) ){
98107
var aJarPaths = [];
@@ -105,19 +114,30 @@ component {
105114
}
106115
javaLoaderDSL.loadPaths = aJarPaths;
107116
}
117+
108118
// Single directory? Get all Jars in it
109119
if( isSimpleValue( javaLoaderDSL.loadPaths ) and directoryExists( javaLoaderDSL.loadPaths ) ){
110120
javaLoaderDSL.loadPaths = getJars( javaLoaderDSL.loadPaths );
111-
}
121+
}
122+
112123
// Single Jar?
113124
if( isSimpleValue( javaLoaderDSL.loadPaths ) and fileExists( javaLoaderDSL.loadPaths ) ){
114125
javaLoaderDSL.loadPaths = [ javaLoaderDSL.loadPaths ];
115126
}
127+
116128
// If simple value and no length
117129
if( isSimpleValue( javaLoaderDSL.loadPaths ) and !len( javaLoaderDSL.loadPaths ) ){
118130
javaLoaderDSL.loadPaths = [];
119131
}
120132

133+
// Now that we have figured out the user's settings, let's incorporate ours
134+
135+
// Dynamic Proxy
136+
arrayPrepend(
137+
javaLoaderDSL.loadPaths,
138+
variables.modulePath & "/models/javaloader/support/cfcdynamicproxy/lib/cfcdynamicproxy.jar"
139+
);
140+
121141
// incorporate settings
122142
structAppend( configStruct.modules.cbjavaloader.settings, javaLoaderDSL, true );
123143
}

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Apache License, Version 2.0.
1515

1616
## System Requirements
1717
- Lucee 4.5+
18-
- ColdFusion 10+
18+
- ColdFusion 11+
1919

2020
## Instructions
2121

tests/test-auto.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)