Class DelegatingBundle
java.lang.Object
org.apache.xbean.osgi.bundle.util.DelegatingBundle
- All Implemented Interfaces:
Comparable<org.osgi.framework.Bundle>
,org.osgi.framework.Bundle
Bundle that delegates ClassLoader operations to a collection of
Bundle
objects.- Version:
- $Rev: 1371482 $ $Date: 2012-08-09 22:58:28 +0200 (Thu, 09 Aug 2012) $
-
Field Summary
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
ConstructorsConstructorDescriptionDelegatingBundle
(Collection<org.osgi.framework.Bundle> bundles) DelegatingBundle
(org.osgi.framework.Bundle bundle) -
Method Summary
Modifier and TypeMethodDescription<A> A
void
addBundle
(org.osgi.framework.Bundle b) int
compareTo
(org.osgi.framework.Bundle other) findEntries
(String arg0, String arg1, boolean arg2) org.osgi.framework.BundleContext
long
getDataFile
(String filename) getEntryPaths
(String arg0) getHeaders
(String arg0) long
org.osgi.framework.Bundle
org.osgi.framework.ServiceReference[]
getResource
(String name) getResources
(String name) org.osgi.framework.ServiceReference[]
getSignerCertificates
(int arg0) int
getState()
org.osgi.framework.Version
boolean
hasPermission
(Object arg0) Class<?>
void
removeBundle
(org.osgi.framework.Bundle b) void
start()
void
start
(int arg0) void
stop()
void
stop
(int arg0) toString()
void
void
update()
void
update
(InputStream arg0)
-
Constructor Details
-
DelegatingBundle
-
DelegatingBundle
public DelegatingBundle(org.osgi.framework.Bundle bundle)
-
-
Method Details
-
getMainBundle
public org.osgi.framework.Bundle getMainBundle() -
loadClass
- Specified by:
loadClass
in interfaceorg.osgi.framework.Bundle
- Throws:
ClassNotFoundException
-
addBundle
public void addBundle(org.osgi.framework.Bundle b) -
removeBundle
public void removeBundle(org.osgi.framework.Bundle b) -
getResource
- Specified by:
getResource
in interfaceorg.osgi.framework.Bundle
-
getResources
- Specified by:
getResources
in interfaceorg.osgi.framework.Bundle
- Throws:
IOException
-
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()- Specified by:
getBundleContext
in interfaceorg.osgi.framework.Bundle
-
findEntries
- Specified by:
findEntries
in interfaceorg.osgi.framework.Bundle
-
getBundleId
public long getBundleId()- Specified by:
getBundleId
in interfaceorg.osgi.framework.Bundle
-
getEntry
- Specified by:
getEntry
in interfaceorg.osgi.framework.Bundle
-
getEntryPaths
- Specified by:
getEntryPaths
in interfaceorg.osgi.framework.Bundle
-
getHeaders
- Specified by:
getHeaders
in interfaceorg.osgi.framework.Bundle
-
getHeaders
- Specified by:
getHeaders
in interfaceorg.osgi.framework.Bundle
-
getLastModified
public long getLastModified()- Specified by:
getLastModified
in interfaceorg.osgi.framework.Bundle
-
getLocation
- Specified by:
getLocation
in interfaceorg.osgi.framework.Bundle
-
getRegisteredServices
public org.osgi.framework.ServiceReference[] getRegisteredServices()- Specified by:
getRegisteredServices
in interfaceorg.osgi.framework.Bundle
-
getServicesInUse
public org.osgi.framework.ServiceReference[] getServicesInUse()- Specified by:
getServicesInUse
in interfaceorg.osgi.framework.Bundle
-
getSignerCertificates
- Specified by:
getSignerCertificates
in interfaceorg.osgi.framework.Bundle
-
getState
public int getState()- Specified by:
getState
in interfaceorg.osgi.framework.Bundle
-
getSymbolicName
- Specified by:
getSymbolicName
in interfaceorg.osgi.framework.Bundle
-
getVersion
public org.osgi.framework.Version getVersion()- Specified by:
getVersion
in interfaceorg.osgi.framework.Bundle
-
hasPermission
- Specified by:
hasPermission
in interfaceorg.osgi.framework.Bundle
-
start
public void start() throws org.osgi.framework.BundleException- Specified by:
start
in interfaceorg.osgi.framework.Bundle
- Throws:
org.osgi.framework.BundleException
-
start
public void start(int arg0) throws org.osgi.framework.BundleException - Specified by:
start
in interfaceorg.osgi.framework.Bundle
- Throws:
org.osgi.framework.BundleException
-
stop
public void stop() throws org.osgi.framework.BundleException- Specified by:
stop
in interfaceorg.osgi.framework.Bundle
- Throws:
org.osgi.framework.BundleException
-
stop
public void stop(int arg0) throws org.osgi.framework.BundleException - Specified by:
stop
in interfaceorg.osgi.framework.Bundle
- Throws:
org.osgi.framework.BundleException
-
uninstall
public void uninstall() throws org.osgi.framework.BundleException- Specified by:
uninstall
in interfaceorg.osgi.framework.Bundle
- Throws:
org.osgi.framework.BundleException
-
update
public void update() throws org.osgi.framework.BundleException- Specified by:
update
in interfaceorg.osgi.framework.Bundle
- Throws:
org.osgi.framework.BundleException
-
update
- Specified by:
update
in interfaceorg.osgi.framework.Bundle
- Throws:
org.osgi.framework.BundleException
-
compareTo
public int compareTo(org.osgi.framework.Bundle other) - Specified by:
compareTo
in interfaceComparable<org.osgi.framework.Bundle>
-
adapt
- Specified by:
adapt
in interfaceorg.osgi.framework.Bundle
-
getDataFile
- Specified by:
getDataFile
in interfaceorg.osgi.framework.Bundle
-
toString
-