@Activate protected void activate(final ComponentContext ctx) { this.bundleId = ctx.getUsingBundle().getBundleId(); }
/** * This method is used to activate bundle * * @param ctxt component context instance */ @Activate protected void activate(ComponentContext ctxt) { if (log.isDebugEnabled()) { log.debug("SAMLQueryServiceComponent is activated with ID: " + ctxt.getUsingBundle().getBundleId()); } }
@Activate void activate(ComponentContext context) { setBundle(context.getUsingBundle()); }
@Activate public void activate(ComponentContext ctx) { this.context = ctx.getUsingBundle().getBundleContext(); customizer = new ServiceTrackerCustomizer<VaadinResourceProvider,VaadinResourceProvider>() { @Override public VaadinResourceProvider addingService( ServiceReference<VaadinResourceProvider> reference) { return context.getService(reference); } @Override public void modifiedService( ServiceReference<VaadinResourceProvider> reference, VaadinResourceProvider service) { } @Override public void removedService( ServiceReference<VaadinResourceProvider> reference, VaadinResourceProvider service) { } }; tracker = new ServiceTracker<VaadinResourceProvider, VaadinResourceProvider>(context, VaadinResourceProvider.class, customizer); tracker.open(); }
@Override public synchronized BundleEntity getBundleEntity() { if (bundleEntity == null) if (componentContext != null && contextProxy != null) { Bundle bundle = componentContext.getUsingBundle(); URI symName = URI.create("/" + bundle.getSymbolicName().replace(".", "/")); bundleEntity = contextProxy.request(new es.ucm.fdi.grasia.faerie.core.model.BundleEntity( authorityURI(localURI()), namespaceURI(symName), nameURI(symName))); } return bundleEntity; }
for (int i = 0; i < producerSCP.instances.size(); i++) { ComponentInstanceImpl producerComponentInstance = (ComponentInstanceImpl) producerSCP.instances.elementAt(i); if (producerComponentInstance.getComponentContext().getUsingBundle().equals(bundle)) {
for (int i = 0; i < producerSCP.instances.size(); i++) { ComponentInstanceImpl producerComponentInstance = (ComponentInstanceImpl) producerSCP.instances.elementAt(i); if (producerComponentInstance.getComponentContext().getUsingBundle().equals(bundle)) {