CVS: jcontainer/loom/engine/src/java/org/jcontainer/loom/components/classloader PolicyClassLoader.java,1.3,1.4
Peter Donald <pdonald-yCVjj/[email protected]> Tue, 4 Nov 2003 22:06:40 -0600
| Newsgroups | gmane.comp.java.jcontainer.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/classloader
In directory hogshead.codehaus.org:/tmp/cvs-serv14942/loom/engine/src/java/org/jcontainer/loom/components/classloader
Modified Files:
PolicyClassLoader.java
Log Message:
Remove unecessaryu abstraction
Index: PolicyClassLoader.java
===================================================================
RCS file: /cvsroot/jcontainer/jcontainer/loom/engine/src/java/org/jcontainer/loom/components/classloader/PolicyClassLoader.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- PolicyClassLoader.java 5 Oct 2003 10:07:03 -0000 1.3
+++ PolicyClassLoader.java 5 Nov 2003 04:06:37 -0000 1.4
@@ -87,7 +87,6 @@
package org.jcontainer.loom.components.classloader;
import java.io.IOException;
-import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.security.CodeSource;
@@ -126,10 +125,8 @@
PolicyClassLoader( final URL[] urls,
final ClassLoader parent,
final Policy policy )
- throws MalformedURLException
{
super( urls, parent );
-
if( null == policy )
{
throw new NullPointerException( "policy" );
@@ -142,16 +139,6 @@
m_logger = logger;
}
- protected void addURL( final URL url )
- {
- super.addURL( url );
- }
-
- private Logger getLogger()
- {
- return m_logger;
- }
-
/**
* Overide findClass to log debugging information
* indicating that a class is being loaded from application
@@ -164,9 +151,9 @@
protected Class findClass( final String name )
throws ClassNotFoundException
{
- if( getLogger().isDebugEnabled() )
+ if( m_logger.isDebugEnabled() )
{
- getLogger().debug( "findClass(" + name + ")" );
+ m_logger.debug( "findClass(" + name + ")" );
}
return super.findClass( name );
}
@@ -180,9 +167,9 @@
*/
protected PermissionCollection getPermissions( final CodeSource codeSource )
{
- if( getLogger().isDebugEnabled() )
+ if( m_logger.isDebugEnabled() )
{
- getLogger().debug( "getPermissions(" + codeSource + ")" );
+ m_logger.debug( "getPermissions(" + codeSource + ")" );
}
return m_policy.getPermissions( codeSource );
}
@@ -202,9 +189,9 @@
public Enumeration findResources( final String name )
throws IOException
{
- if( getLogger().isDebugEnabled() )
+ if( m_logger.isDebugEnabled() )
{
- getLogger().debug( "findResources(" + name + ")" );
+ m_logger.debug( "findResources(" + name + ")" );
}
return super.findResources( name );
@@ -223,22 +210,22 @@
*/
public URL findResource( final String name )
{
- if( getLogger().isDebugEnabled() )
+ if( m_logger.isDebugEnabled() )
{
- getLogger().debug( "findResource(" + name + ")" );
+ m_logger.debug( "findResource(" + name + ")" );
}
final URL url = super.findResource( name );
- if( getLogger().isDebugEnabled() )
+ if( m_logger.isDebugEnabled() )
{
if( null != url )
{
- getLogger().debug( "Resource " + name + " located (" + url + ")" );
+ m_logger.debug( "Resource " + name + " located (" + url + ")" );
}
else
{
- getLogger().debug( "Resource " + name + " not located" );
+ m_logger.debug( "Resource " + name + " not located" );
}
}