Search in sources :

Example 6 with PromiseFactory

use of org.osgi.util.promise.PromiseFactory in project bndtools by bndtools.

the class GitHubWorkspaceTemplateLoader method activate.

@Activate
void activate() {
    if (promiseFactory == null) {
        localExecutor = Executors.newCachedThreadPool();
        promiseFactory = new PromiseFactory(localExecutor);
    }
}
Also used : PromiseFactory(org.osgi.util.promise.PromiseFactory) Activate(org.osgi.service.component.annotations.Activate)

Aggregations

Activate (org.osgi.service.component.annotations.Activate)6 PromiseFactory (org.osgi.util.promise.PromiseFactory)6 PromiseCollectors.toPromise (aQute.lib.promise.PromiseCollectors.toPromise)2 Reporter (aQute.service.reporter.Reporter)2 Collections (java.util.Collections)2 List (java.util.List)2 Objects (java.util.Objects)2 ExecutorService (java.util.concurrent.ExecutorService)2 Executors (java.util.concurrent.Executors)2 Template (org.bndtools.templating.Template)2 TemplateLoader (org.bndtools.templating.TemplateLoader)2 Constants (org.osgi.framework.Constants)2 Component (org.osgi.service.component.annotations.Component)2 Deactivate (org.osgi.service.component.annotations.Deactivate)2 Reference (org.osgi.service.component.annotations.Reference)2 ReferenceCardinality (org.osgi.service.component.annotations.ReferenceCardinality)2 ReferencePolicyOption (org.osgi.service.component.annotations.ReferencePolicyOption)2 Promise (org.osgi.util.promise.Promise)2 Workspace (aQute.bnd.build.Workspace)1 Attrs (aQute.bnd.header.Attrs)1