return;
}
protected IWebApplication findApplication(Bundle bundle) {
FwkActivator fwkActivator = FwkActivator.getInstance();
IWebApplication app = FwkRuntime.getInstance().getAppliction(bundle);
if (app != null)
return app;
IExtensionPoint extPoint = Platform.getExtensionRegistry()
.getExtensionPoint(
fwkActivator.getBundleSymbleName()
+ ".JeeWebApplication");
IConfigurationElement[] ces = extPoint.getConfigurationElements();
for (IConfigurationElement ce : ces) {
String bundleId = ((RegistryContributor) (ce.getContributor()))
.getId();
if (bundle.getBundleId() != Long.parseLong(bundleId))
continue;
if (!ce.getName().equals("application"))
continue;
try {
return (IWebApplication) ce.createExecutableExtension("class");
} catch (Exception e) {
fwkActivator.log(e);
}
}
return null;
}