public URL getResource( String name ) { return realm.getResource( name ); }
public URL getResource( String name ) { return realm.getResource( name ); }
public URL getResource( String name ) { return realm.getResource( name ); }
public URL getResource( String name ) { return realm.getResource( name ); }
public URL getResource( String name ) { return realm.getResource( name ); }
protected URL getScriptLocation( ComponentDescriptor componentDescriptor, ClassRealm classRealm ) { String impl = componentDescriptor.getImplementation(); if ( !impl.startsWith( "/" ) ) { impl = "/" + impl; } URL scriptLocation = classRealm.getResource( impl ); if(scriptLocation == null) { System.out.println("Cannot find: " + impl + " in classpath:"); for ( int i = 0; i < classRealm.getConstituents().length; i++ ) { URL constituent = classRealm.getConstituents()[i]; System.out.println("[" + i + "] " + constituent); } } return scriptLocation; }
URL loadResourceDirect( String name ) { // 1. Try this realm's ClassLoader. // 2. If the realm has a parent try the parent's ClassLoader. URL resource = this.classLoader.findResource( name ); if ( resource == null && getParent() != null ) { resource = getParent().getResource( name ); } return resource; }
resource = sourceRealm.getResource( name ); resource = getParent().getResource( name );
URL scriptLocation = containerRealm.getResource( impl );