|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.commons.classloader.impl.DynamicClassLoaderManagerFactory
public class DynamicClassLoaderManagerFactory
This is the service factory for the dynamic class loader manager.
Constructor Summary | |
---|---|
DynamicClassLoaderManagerFactory(org.osgi.framework.BundleContext ctx,
org.osgi.service.packageadmin.PackageAdmin pckAdmin)
Create a new service instance |
Method Summary | |
---|---|
void |
addUnresolvedPackage(String pckName)
Notify that a package is not found during class loading. |
void |
addUsedBundle(org.osgi.framework.Bundle bundle)
Notify that a bundle is used as a source for class loading. |
Object |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration)
|
boolean |
hasUnresolvedPackages(org.osgi.framework.Bundle bundle)
Check if an exported package from the bundle has not been found during previous class loading attempts. |
boolean |
isBundleUsed(long bundleId)
Check if a bundle has been used for class loading. |
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
Object service)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicClassLoaderManagerFactory(org.osgi.framework.BundleContext ctx, org.osgi.service.packageadmin.PackageAdmin pckAdmin)
ctx
- The bundle context.pckAdmin
- The package admin.Method Detail |
---|
public Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
getService
in interface org.osgi.framework.ServiceFactory
ServiceFactory.getService(org.osgi.framework.Bundle, org.osgi.framework.ServiceRegistration)
public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration, Object service)
ungetService
in interface org.osgi.framework.ServiceFactory
ServiceFactory.ungetService(org.osgi.framework.Bundle, org.osgi.framework.ServiceRegistration, java.lang.Object)
public boolean isBundleUsed(long bundleId)
bundleId
- The bundle id.
true
if the bundle has been used.public void addUsedBundle(org.osgi.framework.Bundle bundle)
bundle
- The bundle.public void addUnresolvedPackage(String pckName)
pckName
- The package name.public boolean hasUnresolvedPackages(org.osgi.framework.Bundle bundle)
bundle
- The bundle to check
true
if a package has not be found before
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |