org.jvnet.hk2.osgiadapter
Class OSGiObrBasedRepository

java.lang.Object
  extended by org.jvnet.hk2.osgiadapter.OSGiObrBasedRepository
All Implemented Interfaces:
Repository

public class OSGiObrBasedRepository
extends java.lang.Object
implements Repository

Author:
Sanjeeb.Sahoo@Sun.COM

Constructor Summary
OSGiObrBasedRepository(org.apache.felix.bundlerepository.Repository obr)
           
 
Method Summary
 boolean addListener(RepositoryChangeListener listener)
           
 ModuleDefinition find(java.lang.String name, java.lang.String version)
           
 java.util.List<ModuleDefinition> findAll()
           
 java.util.List<ModuleDefinition> findAll(java.lang.String name)
           
 java.util.List<java.net.URI> getJarLocations()
           
 java.net.URI getLocation()
           
 java.lang.String getName()
           
 void initialize()
           
 boolean removeListener(RepositoryChangeListener listener)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiObrBasedRepository

public OSGiObrBasedRepository(org.apache.felix.bundlerepository.Repository obr)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Repository

getLocation

public java.net.URI getLocation()
Specified by:
getLocation in interface Repository

find

public ModuleDefinition find(java.lang.String name,
                             java.lang.String version)
Specified by:
find in interface Repository

findAll

public java.util.List<ModuleDefinition> findAll()
Specified by:
findAll in interface Repository

findAll

public java.util.List<ModuleDefinition> findAll(java.lang.String name)
Specified by:
findAll in interface Repository

initialize

public void initialize()
                throws java.io.IOException
Specified by:
initialize in interface Repository
Throws:
java.io.IOException

shutdown

public void shutdown()
              throws java.io.IOException
Specified by:
shutdown in interface Repository
Throws:
java.io.IOException

getJarLocations

public java.util.List<java.net.URI> getJarLocations()
Specified by:
getJarLocations in interface Repository

addListener

public boolean addListener(RepositoryChangeListener listener)
Specified by:
addListener in interface Repository

removeListener

public boolean removeListener(RepositoryChangeListener listener)
Specified by:
removeListener in interface Repository


Copyright © 2012 Oracle Corporation. All Rights Reserved.