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