no.sesat.search.site.config
Class SiteClassLoaderFactory

java.lang.Object
  extended by no.sesat.search.site.config.SiteClassLoaderFactory
All Implemented Interfaces:
SiteKeyedFactory

public final class SiteClassLoaderFactory
extends Object
implements SiteKeyedFactory

This provides class loaders capable of loading classes from the skins.

Version:
$Id: SiteClassLoaderFactory.java 7225 2009-04-09 00:32:20Z ssmiweve $

Nested Class Summary
static interface SiteClassLoaderFactory.Context
          The context needed.
 
Method Summary
 ClassLoader getClassLoader()
          Returns a class loader for the site.
static SiteClassLoaderFactory instanceOf(SiteClassLoaderFactory.Context context)
          Returns a class loader factory for a site.
 boolean remove(Site site)
          Remove the factory the maps to the given site.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instanceOf

public static SiteClassLoaderFactory instanceOf(SiteClassLoaderFactory.Context context)
Returns a class loader factory for a site.

Parameters:
context - The site and bytecode loader.
Returns:
a class loader factory for the site.

getClassLoader

public ClassLoader getClassLoader()
Returns a class loader for the site.

Returns:
a classloader for the site.

remove

public boolean remove(Site site)
Remove the factory the maps to the given site. *

Specified by:
remove in interface SiteKeyedFactory
Parameters:
site - remove factory corresponding to this site.
Returns:
true if a factory was successfully removed.


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.