From: Steve L. <st...@us...> - 2006-01-31 17:25:46
|
Update of /cvsroot/smartfrog/core/extras/cdl/src/org/smartfrog/sfcore/languages/cdl/importing/classpath In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17467/src/org/smartfrog/sfcore/languages/cdl/importing/classpath Modified Files: UrlFactory.java Log Message: declare the first bindings to classic SmartFrog components. Index: UrlFactory.java =================================================================== RCS file: /cvsroot/smartfrog/core/extras/cdl/src/org/smartfrog/sfcore/languages/cdl/importing/classpath/UrlFactory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** UrlFactory.java 21 Dec 2005 11:50:18 -0000 1.1 --- UrlFactory.java 31 Jan 2006 17:25:37 -0000 1.2 *************** *** 32,35 **** --- 32,38 ---- * What is special about it is that it is bound to a resource loader, and can * handle classpath: URLs by resolving stuff on that resolver. + * + * Use this when working with URLs, rather than new URL() directly, because the + * latter is not as easily extended as one woudl like * created 20-Dec-2005 12:57:04 */ *************** *** 74,77 **** --- 77,92 ---- /** + * Create a url + * @param base + * @param path + * @return + * @throws MalformedURLException + */ + public URL createUrl(URL base,String path) + throws MalformedURLException { + return new URL(base,path); + } + + /** * Create a classpath URL * @param resource |