org.ow2.util.plan.fetcher.impl.url
Class UrlFetcherActivator

java.lang.Object
  extended by org.ow2.util.plan.fetcher.impl.url.UrlFetcherActivator
All Implemented Interfaces:
EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener

public class UrlFetcherActivator
extends Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener

Activator for the fetcher/url bundle. It registers a UrlResourceFetcherFactory, registers it as listener for url protocol registration/unregistration.

Author:
Mickaƫl LEDUQUE

Constructor Summary
UrlFetcherActivator()
           
 
Method Summary
 void serviceChanged(org.osgi.framework.ServiceEvent event)
           Specific : listens to repository manager registration and unregistration events.
 void start(org.osgi.framework.BundleContext context)
           Specific : sets up and registers a Url resource fetcher.
 void stop(org.osgi.framework.BundleContext context)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlFetcherActivator

public UrlFetcherActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
Specific : sets up and registers a Url resource fetcher.

Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws Exception

Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
Exception

serviceChanged

public void serviceChanged(org.osgi.framework.ServiceEvent event)
Specific : listens to repository manager registration and unregistration events.

Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener


Copyright © 2007-2011 OW2 Consortium. All Rights Reserved.