org.jclouds.karaf.core.internal
Class MetadataBundleListener

java.lang.Object
  extended by org.jclouds.karaf.core.internal.MetadataBundleListener
All Implemented Interfaces:
EventListener, org.osgi.framework.BundleListener

public class MetadataBundleListener
extends Object
implements org.osgi.framework.BundleListener


Constructor Summary
MetadataBundleListener()
           
 
Method Summary
 void bundleChanged(org.osgi.framework.BundleEvent event)
           
 void destroy()
           
 org.jclouds.apis.ApiMetadata getApiMetadata(org.osgi.framework.Bundle bundle)
          Creates an instance of ApiMetadata from the Bundle.
 String getApiMetadataClassName(org.osgi.framework.Bundle bundle)
          Retrieves the ProviderMetadata class name for the bundle if it exists.
 org.osgi.framework.BundleContext getBundleContext()
           
 String getMetadataClassName(org.osgi.framework.Bundle bundle, String pathToMetadata)
           
 org.jclouds.providers.ProviderMetadata getProviderMetadata(org.osgi.framework.Bundle bundle)
          Creates an instance of ProviderMetadata from the Bundle.
 String getProviderMetadataClassName(org.osgi.framework.Bundle bundle)
          Retrieves the ProviderMetadata class name for the bundle if it exists.
 void init()
           
 void notifyInstallation(org.jclouds.apis.ApiMetadata metadata)
          Notifies ProviderOrApiListeners with the installation of a ApiMetadata.
 void notifyInstallation(org.jclouds.providers.ProviderMetadata metadata)
          Notifies ProviderOrApiListeners with the installation of a ProviderMetadata.
 void registerBlobStoreListener(BlobStoreProviderOrApiListener providerOrApiListener)
          Registers a ComputeProviderOrApiListener
 void registerComputeListener(ComputeProviderOrApiListener providerOrApiListener)
          Registers a ComputeProviderOrApiListener
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 void unregisterBlobStoreListener(BlobStoreProviderOrApiListener providerOrApiListener)
           
 void unregisterComputeListener(ComputeProviderOrApiListener providerOrApiListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataBundleListener

public MetadataBundleListener()
Method Detail

init

public void init()

destroy

public void destroy()

bundleChanged

public void bundleChanged(org.osgi.framework.BundleEvent event)
Specified by:
bundleChanged in interface org.osgi.framework.BundleListener

getProviderMetadata

public org.jclouds.providers.ProviderMetadata getProviderMetadata(org.osgi.framework.Bundle bundle)
Creates an instance of ProviderMetadata from the Bundle.

Parameters:
bundle -
Returns:

getApiMetadata

public org.jclouds.apis.ApiMetadata getApiMetadata(org.osgi.framework.Bundle bundle)
Creates an instance of ApiMetadata from the Bundle.

Parameters:
bundle -
Returns:

getMetadataClassName

public String getMetadataClassName(org.osgi.framework.Bundle bundle,
                                   String pathToMetadata)

getProviderMetadataClassName

public String getProviderMetadataClassName(org.osgi.framework.Bundle bundle)
Retrieves the ProviderMetadata class name for the bundle if it exists.

Parameters:
bundle -
Returns:

getApiMetadataClassName

public String getApiMetadataClassName(org.osgi.framework.Bundle bundle)
Retrieves the ProviderMetadata class name for the bundle if it exists.

Parameters:
bundle -
Returns:

notifyInstallation

public void notifyInstallation(org.jclouds.providers.ProviderMetadata metadata)
Notifies ProviderOrApiListeners with the installation of a ProviderMetadata.

Parameters:
metadata -

notifyInstallation

public void notifyInstallation(org.jclouds.apis.ApiMetadata metadata)
Notifies ProviderOrApiListeners with the installation of a ApiMetadata.

Parameters:
metadata -

registerComputeListener

public void registerComputeListener(ComputeProviderOrApiListener providerOrApiListener)
Registers a ComputeProviderOrApiListener

Parameters:
providerOrApiListener -

unregisterComputeListener

public void unregisterComputeListener(ComputeProviderOrApiListener providerOrApiListener)

registerBlobStoreListener

public void registerBlobStoreListener(BlobStoreProviderOrApiListener providerOrApiListener)
Registers a ComputeProviderOrApiListener

Parameters:
providerOrApiListener -

unregisterBlobStoreListener

public void unregisterBlobStoreListener(BlobStoreProviderOrApiListener providerOrApiListener)

getBundleContext

public org.osgi.framework.BundleContext getBundleContext()

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext bundleContext)


Copyright © 2012. All Rights Reserved.