Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name":"Coldspring",
"slug":"coldspring",
"version":"2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,17 @@
<cfargument name="beanName" hint="the name of the bean" type="string" required="Yes">
<cfscript>
var local = {};
var earlyProxyCache = getEarlyProxyCache();

if(!structKeyExists(earlyProxyCache, arguments.beanName))
{
local.class = getReflectionService().loadClass(getMetadata(arguments.bean).name);

//if matches an AOP Advice, return a proxy
if(checkIsAOPCandidate(local.class))
{
return getProxyFactory().getProxy(arguments.bean);
var meta = getMetadata(arguments.bean);
if(structKeyExists(meta, 'type') && meta.type == 'component') {
var earlyProxyCache = getEarlyProxyCache();
if(!structKeyExists(earlyProxyCache, arguments.beanName)) {
local.class = getReflectionService().loadClass(meta.name);
//if matches an AOP Advice, return a proxy
if(checkIsAOPCandidate(local.class)) {
return getProxyFactory().getProxy(arguments.bean);
}
}
}

return arguments.bean;
</cfscript>
</cffunction>
Expand Down
2 changes: 1 addition & 1 deletion coldspring/core/io/XMLFileReader.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<cffunction name="buildDocument" hint="Abstract: Builder the org.w3c.dom.Document from the factory" access="private" returntype="any" output="false">
<cfargument name="builder" hint="The javax.xml.parsers.DocumentBuilder object" type="any" required="true">
<cfscript>
return arguments.builder.parse(getPath());
return arguments.builder.parse(createobject("java", "java.io.File").init(getPath()));
</cfscript>
</cffunction>

Expand Down