private Map<String, String> baseProperties = new HashMap<String, String>();
private BundleContext bundleContext;
- private final static String CONTEXT_NAME_PROPERTY = "contextName";
+ public final static String CONTEXT_NAME_PROPERTY = "contextName";
private String contextName;
/**
return bundleContext;
}
- protected String getContextName() {
+ public String getContextName() {
return contextName;
}
+ public void setContextName(String contextName) {
+ this.contextName = contextName;
+ }
+
public void init(BundleContext bundleContext, Map<String, Object> properties) {
this.bundleContext = bundleContext;
for (String key : properties.keySet()) {
if (name.startsWith("target/"))
continue resources; // skip maven output
application.addResource(name, resources.get(name));
- if (log.isDebugEnabled())
- log.debug("Added resource " + name);
+ if (log.isTraceEnabled())
+ log.trace("Added resource " + name);
}
for (String name : css.keySet()) {
application.addStyleSheet(themeId, name, css.get(name));
protected void processBundle(Bundle bundle) {
BundleWiring wiring = bundle.adapt(BundleWiring.class);
if (wiring == null) {
- log.warn("Bundle " + bundle.getSymbolicName() + " #" + bundle.getBundleId() + " (" + bundle.getLocation()
- + ") cannot be adapted to a wiring");
+ int bundleState = bundle.getState();
+ if (bundleState != Bundle.INSTALLED && bundleState != Bundle.UNINSTALLED) {// ignore unresolved bundles
+ log.warn("Bundle " + bundle.getSymbolicName() + " #" + bundle.getBundleId() + " ("
+ + bundle.getLocation() + ") cannot be adapted to a wiring");
+ } else {
+ if (log.isTraceEnabled())
+ log.warn("Bundle " + bundle.getSymbolicName() + " is not resolved.");
+ }
return;
}
List<BundleCapability> providedDataModels = wiring.getCapabilities(CMS_DATA_MODEL_NAMESPACE);