org.jboss.osgi.spi.framework
Class FrameworkWrapper
java.lang.Object
org.jboss.osgi.spi.framework.FrameworkWrapper
- All Implemented Interfaces:
- org.osgi.framework.Bundle, org.osgi.framework.launch.Framework
public class FrameworkWrapper
- extends Object
- implements org.osgi.framework.launch.Framework
A generic Framework wrapper that delegates all method calls to the underlying
Framework implementation.
- Since:
- 16-Oct-2009
- Author:
- thomas.diesler@jboss.com
|
Field Summary |
protected org.osgi.framework.launch.Framework |
framework
|
| Fields inherited from interface org.osgi.framework.Bundle |
ACTIVE, INSTALLED, RESOLVED, SIGNERS_ALL, SIGNERS_TRUSTED, START_ACTIVATION_POLICY, START_TRANSIENT, STARTING, STOP_TRANSIENT, STOPPING, UNINSTALLED |
|
Constructor Summary |
FrameworkWrapper(org.osgi.framework.launch.Framework framework)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
framework
protected org.osgi.framework.launch.Framework framework
FrameworkWrapper
public FrameworkWrapper(org.osgi.framework.launch.Framework framework)
findEntries
public Enumeration findEntries(String arg0,
String arg1,
boolean arg2)
- Specified by:
findEntries in interface org.osgi.framework.Bundle
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
- Specified by:
getBundleContext in interface org.osgi.framework.Bundle
getBundleId
public long getBundleId()
- Specified by:
getBundleId in interface org.osgi.framework.Bundle- Specified by:
getBundleId in interface org.osgi.framework.launch.Framework
getEntry
public URL getEntry(String arg0)
- Specified by:
getEntry in interface org.osgi.framework.Bundle
getEntryPaths
public Enumeration getEntryPaths(String arg0)
- Specified by:
getEntryPaths in interface org.osgi.framework.Bundle
getHeaders
public Dictionary getHeaders()
- Specified by:
getHeaders in interface org.osgi.framework.Bundle
getHeaders
public Dictionary getHeaders(String arg0)
- Specified by:
getHeaders in interface org.osgi.framework.Bundle
getLastModified
public long getLastModified()
- Specified by:
getLastModified in interface org.osgi.framework.Bundle
getLocation
public String getLocation()
- Specified by:
getLocation in interface org.osgi.framework.Bundle- Specified by:
getLocation in interface org.osgi.framework.launch.Framework
getRegisteredServices
public org.osgi.framework.ServiceReference[] getRegisteredServices()
- Specified by:
getRegisteredServices in interface org.osgi.framework.Bundle
getResource
public URL getResource(String arg0)
- Specified by:
getResource in interface org.osgi.framework.Bundle
getResources
public Enumeration getResources(String arg0)
throws IOException
- Specified by:
getResources in interface org.osgi.framework.Bundle
- Throws:
IOException
getServicesInUse
public org.osgi.framework.ServiceReference[] getServicesInUse()
- Specified by:
getServicesInUse in interface org.osgi.framework.Bundle
getSignerCertificates
public Map getSignerCertificates(int arg0)
- Specified by:
getSignerCertificates in interface org.osgi.framework.Bundle
getState
public int getState()
- Specified by:
getState in interface org.osgi.framework.Bundle
getSymbolicName
public String getSymbolicName()
- Specified by:
getSymbolicName in interface org.osgi.framework.Bundle- Specified by:
getSymbolicName in interface org.osgi.framework.launch.Framework
getVersion
public org.osgi.framework.Version getVersion()
- Specified by:
getVersion in interface org.osgi.framework.Bundle
hasPermission
public boolean hasPermission(Object arg0)
- Specified by:
hasPermission in interface org.osgi.framework.Bundle
init
public void init()
throws org.osgi.framework.BundleException
- Specified by:
init in interface org.osgi.framework.launch.Framework
- Throws:
org.osgi.framework.BundleException
loadClass
public Class loadClass(String arg0)
throws ClassNotFoundException
- Specified by:
loadClass in interface org.osgi.framework.Bundle
- Throws:
ClassNotFoundException
start
public void start()
throws org.osgi.framework.BundleException
- Specified by:
start in interface org.osgi.framework.Bundle- Specified by:
start in interface org.osgi.framework.launch.Framework
- Throws:
org.osgi.framework.BundleException
start
public void start(int arg0)
throws org.osgi.framework.BundleException
- Specified by:
start in interface org.osgi.framework.Bundle- Specified by:
start in interface org.osgi.framework.launch.Framework
- Throws:
org.osgi.framework.BundleException
stop
public void stop()
throws org.osgi.framework.BundleException
- Specified by:
stop in interface org.osgi.framework.Bundle- Specified by:
stop in interface org.osgi.framework.launch.Framework
- Throws:
org.osgi.framework.BundleException
stop
public void stop(int arg0)
throws org.osgi.framework.BundleException
- Specified by:
stop in interface org.osgi.framework.Bundle- Specified by:
stop in interface org.osgi.framework.launch.Framework
- Throws:
org.osgi.framework.BundleException
uninstall
public void uninstall()
throws org.osgi.framework.BundleException
- Specified by:
uninstall in interface org.osgi.framework.Bundle- Specified by:
uninstall in interface org.osgi.framework.launch.Framework
- Throws:
org.osgi.framework.BundleException
update
public void update()
throws org.osgi.framework.BundleException
- Specified by:
update in interface org.osgi.framework.Bundle- Specified by:
update in interface org.osgi.framework.launch.Framework
- Throws:
org.osgi.framework.BundleException
update
public void update(InputStream arg0)
throws org.osgi.framework.BundleException
- Specified by:
update in interface org.osgi.framework.Bundle- Specified by:
update in interface org.osgi.framework.launch.Framework
- Throws:
org.osgi.framework.BundleException
waitForStop
public org.osgi.framework.FrameworkEvent waitForStop(long arg0)
throws InterruptedException
- Specified by:
waitForStop in interface org.osgi.framework.launch.Framework
- Throws:
InterruptedException
Copyright © 2010. All Rights Reserved.