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

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

public class SharedLibraryImpl
extends Object
implements SharedLibrary, org.apache.servicemix.nmr.management.Nameable

SharedLibrary object


Field Summary
protected  org.slf4j.Logger logger
           
 
Constructor Summary
SharedLibraryImpl(org.osgi.framework.Bundle bundle, SharedLibraryDesc library, ClassLoader classLoader)
           
 
Method Summary
 void addComponent(Component component)
           
 org.osgi.framework.Bundle getBundle()
           
 ClassLoader getClassLoader()
          Create a classloader for this shared library
 Component[] getComponents()
          Retrieve a list of components using this shared library
 String getDescription()
          Retrieves the description of this shared library
 String getDescriptor()
          Retrieve the JBI descriptor for this service assembly
 String getMainType()
           
 String getName()
          Retrieves the name of this shared library
 String getParent()
           
 Class getPrimaryInterface()
           
 String getSubType()
           
 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.slf4j.Logger logger
Constructor Detail

SharedLibraryImpl

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

getBundle

public org.osgi.framework.Bundle getBundle()

getName

public 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 org.apache.servicemix.nmr.management.Nameable
Returns:
the name

getDescription

public 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 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 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 org.apache.servicemix.nmr.management.Nameable
Returns:
the version

getClassLoader

public 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 String getParent()
Specified by:
getParent in interface org.apache.servicemix.nmr.management.Nameable

getMainType

public String getMainType()
Specified by:
getMainType in interface org.apache.servicemix.nmr.management.Nameable

getSubType

public String getSubType()
Specified by:
getSubType in interface org.apache.servicemix.nmr.management.Nameable

getPrimaryInterface

public Class getPrimaryInterface()
Specified by:
getPrimaryInterface in interface org.apache.servicemix.nmr.management.Nameable


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