org.apache.servicemix.jbi.deployer.artifacts
Class SharedLibraryImpl

java.lang.Object
  extended by org.apache.servicemix.jbi.deployer.artifacts.SharedLibraryImpl
All Implemented Interfaces:
SharedLibrary, Nameable

public class SharedLibraryImpl
extends java.lang.Object
implements SharedLibrary, Nameable

SharedLibrary object


Field Summary
protected  org.apache.commons.logging.Log LOGGER
           
 
Constructor Summary
SharedLibraryImpl(org.osgi.framework.Bundle bundle, SharedLibraryDesc library, java.lang.ClassLoader classLoader)
           
 
Method Summary
 void addComponent(Component component)
           
 org.osgi.framework.Bundle getBundle()
           
 java.lang.ClassLoader getClassLoader()
          Create a classloader for this shared library
 Component[] getComponents()
          Retrieve a list of components using this shared library
 java.lang.String getDescription()
          Retrieves the description of this shared library
 java.lang.String getDescriptor()
          Retrieve the JBI descriptor for this service assembly
 java.lang.String getMainType()
           
 java.lang.String getName()
          Retrieves the name of this shared library
 java.lang.String getParent()
           
 java.lang.Class getPrimaryInterface()
           
 java.lang.String getSubType()
           
 java.lang.String getVersion()
          Retrieves the version of this shared library
 void removeComponent(Component component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected final org.apache.commons.logging.Log LOGGER
Constructor Detail

SharedLibraryImpl

public SharedLibraryImpl(org.osgi.framework.Bundle bundle,
                         SharedLibraryDesc library,
                         java.lang.ClassLoader classLoader)
Method Detail

getBundle

public org.osgi.framework.Bundle getBundle()

getName

public java.lang.String getName()
Description copied from interface: SharedLibrary
Retrieves the name of this shared library

Specified by:
getName in interface SharedLibrary
Specified by:
getName in interface Nameable
Returns:
the name

getDescription

public java.lang.String getDescription()
Description copied from interface: SharedLibrary
Retrieves the description of this shared library

Specified by:
getDescription in interface SharedLibrary
Returns:
the description

getDescriptor

public java.lang.String getDescriptor()
Description copied from interface: SharedLibrary
Retrieve the JBI descriptor for this service assembly

Specified by:
getDescriptor in interface SharedLibrary
Returns:
the JBI descriptor

getVersion

public java.lang.String getVersion()
Description copied from interface: SharedLibrary
Retrieves the version of this shared library

Specified by:
getVersion in interface SharedLibrary
Specified by:
getVersion in interface Nameable
Returns:
the version

getClassLoader

public java.lang.ClassLoader getClassLoader()
Description copied from interface: SharedLibrary
Create a classloader for this shared library

Specified by:
getClassLoader in interface SharedLibrary
Returns:
a new classloader

getComponents

public Component[] getComponents()
Description copied from interface: SharedLibrary
Retrieve a list of components using this shared library

Specified by:
getComponents in interface SharedLibrary
Returns:

addComponent

public void addComponent(Component component)

removeComponent

public void removeComponent(Component component)

getParent

public java.lang.String getParent()
Specified by:
getParent in interface Nameable

getMainType

public java.lang.String getMainType()
Specified by:
getMainType in interface Nameable

getSubType

public java.lang.String getSubType()
Specified by:
getSubType in interface Nameable

getPrimaryInterface

public java.lang.Class getPrimaryInterface()
Specified by:
getPrimaryInterface in interface Nameable


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.