org.ops4j.pax.url.cache.internal
Class Activator

java.lang.Object
  extended by org.ops4j.pax.url.commons.handler.HandlerActivator<Configuration>
      extended by org.ops4j.pax.url.cache.internal.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public final class Activator
extends HandlerActivator<Configuration>

Bundle activator for "cache:" protocol handler.

Since:
0.6.0, June 02, 2009
Author:
Alin Dreghiciu

Constructor Summary
Activator()
           
 
Method Summary
static java.net.URLConnection createConnection(java.net.URL url, Configuration config)
          Creates a "cache" url connection.
 
Methods inherited from class org.ops4j.pax.url.commons.handler.HandlerActivator
start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
See Also:
HandlerActivator.HandlerActivator(String[], String, ConnectionFactory)
Method Detail

createConnection

public static java.net.URLConnection createConnection(java.net.URL url,
                                                      Configuration config)
                                               throws java.io.IOException
Creates a "cache" url connection.

Parameters:
url - cache file url
config - configuration
Returns:
url connection
Throws:
java.io.IOException - re-thrown


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.