org.apache.struts2.osgi
Interface BundleAccessor

All Known Implementing Classes:
DefaultBundleAccessor

public interface BundleAccessor


Field Summary
static java.lang.String CURRENT_BUNDLE_NAME
           
 
Method Summary
 void addPackageFromBundle(org.osgi.framework.Bundle bundle, java.lang.String packageName)
           
 org.osgi.framework.ServiceReference[] getAllServiceReferences(java.lang.String className)
           
 java.util.Set<java.lang.String> getPackagesByBundle(org.osgi.framework.Bundle bundle)
           
 java.lang.Object getService(org.osgi.framework.ServiceReference ref)
           
 org.osgi.framework.ServiceReference getServiceReference(java.lang.String className)
           
 org.osgi.framework.ServiceReference[] getServiceReferences(java.lang.String className, java.lang.String params)
           
 java.lang.Class loadClass(java.lang.String name)
           
 java.io.InputStream loadResourceAsStream(java.lang.String name)
           
 java.net.URL loadResourceFromAllBundles(java.lang.String name)
           
 java.io.InputStream loadResourceFromAllBundlesAsStream(java.lang.String name)
           
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 void setOsgiHost(OsgiHost osgiHost)
           
 

Field Detail

CURRENT_BUNDLE_NAME

static final java.lang.String CURRENT_BUNDLE_NAME
See Also:
Constant Field Values
Method Detail

loadClass

java.lang.Class loadClass(java.lang.String name)
                          throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

loadResourceAsStream

java.io.InputStream loadResourceAsStream(java.lang.String name)
                                         throws java.io.IOException
Throws:
java.io.IOException

loadResourceFromAllBundlesAsStream

java.io.InputStream loadResourceFromAllBundlesAsStream(java.lang.String name)
                                                       throws java.io.IOException
Throws:
java.io.IOException

loadResourceFromAllBundles

java.net.URL loadResourceFromAllBundles(java.lang.String name)
                                        throws java.io.IOException
Throws:
java.io.IOException

getPackagesByBundle

java.util.Set<java.lang.String> getPackagesByBundle(org.osgi.framework.Bundle bundle)

getService

java.lang.Object getService(org.osgi.framework.ServiceReference ref)

getServiceReference

org.osgi.framework.ServiceReference getServiceReference(java.lang.String className)

getServiceReferences

org.osgi.framework.ServiceReference[] getServiceReferences(java.lang.String className,
                                                           java.lang.String params)
                                                           throws org.osgi.framework.InvalidSyntaxException
Throws:
org.osgi.framework.InvalidSyntaxException

getAllServiceReferences

org.osgi.framework.ServiceReference[] getAllServiceReferences(java.lang.String className)

addPackageFromBundle

void addPackageFromBundle(org.osgi.framework.Bundle bundle,
                          java.lang.String packageName)

setBundleContext

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

setOsgiHost

void setOsgiHost(OsgiHost osgiHost)


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.