org.jboss.osgi.spi.framework
Class GenericBundleWrapper<T extends Bundle>
java.lang.Object
org.jboss.osgi.spi.framework.GenericBundleWrapper<T>
- All Implemented Interfaces:
- Bundle
- Direct Known Subclasses:
- GenericFrameworkWrapper
public class GenericBundleWrapper<T extends Bundle>
- extends Object
- implements Bundle
A generic Bundle wrapper that delegates all method calls to the underlying Bundle 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 |
GenericBundleWrapper
public GenericBundleWrapper(T bundle)
getWrappedBundle
protected T getWrappedBundle()
findEntries
public Enumeration findEntries(String path,
String filePattern,
boolean recurse)
- 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
getEntry
public URL getEntry(String path)
- Specified by:
getEntry
in interface Bundle
getEntryPaths
public Enumeration getEntryPaths(String path)
- Specified by:
getEntryPaths
in interface Bundle
getHeaders
public Dictionary getHeaders()
- Specified by:
getHeaders
in interface Bundle
getHeaders
public Dictionary getHeaders(String locale)
- 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
getRegisteredServices
public ServiceReference[] getRegisteredServices()
- Specified by:
getRegisteredServices
in interface Bundle
getResource
public URL getResource(String name)
- Specified by:
getResource
in interface Bundle
getResources
public Enumeration getResources(String name)
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 signersType)
- 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
getVersion
public Version getVersion()
- Specified by:
getVersion
in interface Bundle
hasPermission
public boolean hasPermission(Object permission)
- Specified by:
hasPermission
in interface Bundle
loadClass
public Class loadClass(String name)
throws ClassNotFoundException
- Specified by:
loadClass
in interface Bundle
- Throws:
ClassNotFoundException
start
public void start()
throws BundleException
- Specified by:
start
in interface Bundle
- Throws:
BundleException
start
public void start(int options)
throws BundleException
- Specified by:
start
in interface Bundle
- Throws:
BundleException
stop
public void stop()
throws BundleException
- Specified by:
stop
in interface Bundle
- Throws:
BundleException
stop
public void stop(int options)
throws BundleException
- Specified by:
stop
in interface Bundle
- Throws:
BundleException
uninstall
public void uninstall()
throws BundleException
- Specified by:
uninstall
in interface Bundle
- Throws:
BundleException
update
public void update()
throws BundleException
- Specified by:
update
in interface Bundle
- Throws:
BundleException
update
public void update(InputStream input)
throws BundleException
- Specified by:
update
in interface Bundle
- Throws:
BundleException
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012. All Rights Reserved.