Main Page Sitemap

Most viewed

ABC Backup Pro 5.10 Keygen lifetime license
DbForge SQL Server Event Profiler - Analyse SQL Trace DataSQL Tools for Oracle, SQL Server, MySQL, PostgreSQL - DevartCan not load Oracle client. Check your PATH environment Update your software and prevent problems No more missed important software updates! UpdateStar 11 lets you stay up...
Read more
Smart Backup 1.20 license key and patch
OMNIA DAYCLUB Ling Ling JEWEL NIGHTCLUB HAKKASAN RESTAURANT HAKKASAN NIGHTCLUB HKK OMNIA NIGHTCLUB VISTA COCKTAIL LOUNGE WET REPUBLIC YAUATCHA SAKE NO HANA SEARSUCKER HERRINGBONE Bootsy Bellows Hooray Henry's SHOREbar 1OAK NIGHTCLUB THE BANK NIGHTCLUB ALIBI COCKTAIL LOUNGE LILY BAR LOUNGE BARE POOL LOUNGE LIQUID...
Read more
Controls4J Library 1.1 Setup and Activation
PowerISO - Free download and software reviews - CNETPreacher S02E04 720p HDTV x264-AVS ReleaseBBAfterDawn: Software downloads To create ISO files to burn in Windows, you need a third-party tool like PowerISO. PowerISO boasts single-click ISO extraction, Blu-ray compatibility, and the. PowerISO - Free download and...
Read more

FileFilter 1 with Activator


IdiomaX English-Spanish Dictionary 6.0 working without activation

The following are top voted examples for showing how to use org.osgi.framework.BundleActivator. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to product more good examples.

+ Save this class to your library

Example 1

Project: jbosgi   File: BundleActivateProcessor.java View source code Vote up 6 votes
@Override public void start(StartContext context) throws StartException { Deployment deployment = depUnit.getAttachment(OSGiConstants.DEPLOYMENT_KEY); BundleManager bundleManager = depUnit.getAttachment(OSGiConstants.BUNDLE_MANAGER_KEY); Component activatorComponent = injectedComponent.getOptionalValue(); if (activatorComponent != null && deployment.getAttachment(BUNDLE_ACTIVATOR_KEY) == null) { ComponentInstance componentInstance = activatorComponent.createInstance(); BundleActivator instance = (BundleActivator) componentInstance.getInstance(); deployment.putAttachment(BUNDLE_ACTIVATOR_KEY, instance); } if (bundle.getState() != Bundle.ACTIVE) { try { bundleManager.startBundle(bundle, Bundle.START_ACTIVATION_POLICY); depUnit.putAttachment(Attachments.BUNDLE_STATE_KEY, BundleState.ACTIVE); } catch (BundleException ex) { throw MESSAGES.cannotStartBundle(ex, bundle); } } }

Example 2

Project: mmp   File: FelixOSGiContainer.java View source code Vote up 6 votes
public void initialize() throws MMPException { //Initialize module observers this.moduleObservers = Collections.synchronizedList(new ArrayList<ModuleObserver>()); //Initialize modules caches this.modulesCache = new ConcurrentHashMap<Module, Element>(); //Initializes module configuration cache this.modulesConfigurationCache = new HashMap<Module, MMPConfig>(); //Build system packages list in CSV format StringBuilder systemPackagesStr = new StringBuilder(); for(String systemPackage : this.systemPackages){ systemPackagesStr.append(systemPackage).append(","); } if(this.systemPackages.size() > 0){ this.felixProperties.put(FelixConstants.FRAMEWORK_SYSTEMPACKAGES, systemPackagesStr.toString()); } //Adds default Bundle activators List<BundleActivator> systemBundleActivators = new ArrayList<BundleActivator>(); this.hostActivator = new HostActivator(this); systemBundleActivators.add(this.hostActivator); this.felixProperties.put(FelixConstants.SYSTEMBUNDLE_ACTIVATORS_PROP, systemBundleActivators); try{ //Build new instance of framework ... this.felixFramework = new Felix(this.felixProperties); //... and start it this.felixFramework.start(); }catch(BundleException be){ throw new MMPModuleException(be); } }

Example 3

Project: gemini.blueprint   File: ChainActivator.java View source code Vote up 6 votes
public ChainActivator() { final LoggingActivator logStatus = new LoggingActivator(); final JavaBeansCacheActivator activateJavaBeansCache = new JavaBeansCacheActivator(); final NamespaceHandlerActivator activateCustomNamespaceHandling = new NamespaceHandlerActivator(); final NamespaceHandlerActivator activateBlueprintspecificNamespaceHandling = new BlueprintNamespaceHandlerActivator(); final ExtenderConfiguration initializeExtenderConfiguration = new ExtenderConfiguration(); final ListenerServiceActivator activateListeners = new ListenerServiceActivator(initializeExtenderConfiguration); final ContextLoaderListener listenForSpringDmBundles = new ContextLoaderListener(initializeExtenderConfiguration); final BlueprintLoaderListener listenForBlueprintBundles = new BlueprintLoaderListener(initializeExtenderConfiguration, activateListeners); if (OsgiPlatformDetector.isR42()) { if (BLUEPRINT_AVAILABLE) { log.info("Blueprint API detected; enabling Blueprint Container functionality"); CHAIN = new BundleActivator[] { logStatus, activateJavaBeansCache, activateCustomNamespaceHandling, activateBlueprintspecificNamespaceHandling, initializeExtenderConfiguration, activateListeners, listenForSpringDmBundles, listenForBlueprintBundles }; } else { log.warn("Blueprint API not found; disabling Blueprint Container functionality"); CHAIN = new BundleActivator[] { logStatus, activateJavaBeansCache, activateCustomNamespaceHandling, initializeExtenderConfiguration, activateListeners, listenForSpringDmBundles }; } } else { log.warn("Pre-4.2 OSGi platform detected; disabling Blueprint Container functionality"); CHAIN = new BundleActivator[] { logStatus, activateJavaBeansCache, activateCustomNamespaceHandling, initializeExtenderConfiguration, activateListeners, listenForSpringDmBundles }; } }

Example 4

Project: arquillian-extension-liferay   File: ArquillianBundleActivator.java View source code Vote up 6 votes
@Override public void start(final BundleContext context) throws Exception { final TestClassLoader testClassLoader = new TestClassLoader() { @Override public Class<?> loadTestClass(String className) throws ClassNotFoundException { return context.getBundle().loadClass(className); } }; // Execute all activators bundleActivators = loadActivators(); for (BundleActivator bundleActivator : bundleActivators) { bundleActivator.start(context); } // Register the JMXTestRunner MBeanServer mbeanServer = findOrCreateMBeanServer(); testRunner = new JMXTestRunner(testClassLoader) { @Override public byte[] runTestMethod(String className, String methodName) { BundleAssociation.setBundle(context.getBundle()); BundleContextAssociation.setBundleContext(context); return super.runTestMethod(className, methodName); } }; testRunner.registerMBean(mbeanServer); }

Example 5

Project: remote   File: AggregatedActivator.java View source code Vote up 6 votes
void startEmbeddedActivators(BundleContext ctx) throws Exception { ClassLoader oldClassLoader = Thread.currentThread() .getContextClassLoader(); try { Thread.currentThread().setContextClassLoader( getClass().getClassLoader()); for (String s : getActivators()) { try { Class<?> clazz = getClass().getClassLoader().loadClass(s); Object o = clazz.newInstance(); if (o instanceof BundleActivator) { BundleActivator ba = (BundleActivator) o; activators.add(ba); ba.start(ctx); } } catch (Throwable th) { th.printStackTrace(); } } SPIActivator sba = new SPIActivator(); sba.start(ctx); activators.add(sba); DSWActivator dsw = new DSWActivator(); dsw.start(ctx); activators.add(dsw); } finally { Thread.currentThread().setContextClassLoader(oldClassLoader); } }

Example 6

Project: org.eclipse.ecr   File: RootRuntimeBundle.java View source code Vote up 6 votes
@Override public BundleActivator getActivator() { if (activator == null) { activator = new OSGIRuntimeTestActivator(); } return activator; }

Example 7

Project: emf   File: EMFPlugin.java View source code Vote up 6 votes
private BundleActivator createBundleHelper() { try { return createBundle(); } catch (Throwable throwable) { return null; } }

Example 8

Project: knapsack   File: Launcher.java View source code Vote up 6 votes
/ Create the Properties file for Felix to launch. @param defaultDirectory @param logger @param activators @return @throws FileNotFoundException @throws IOException / private static Properties createFelixProperties(File defaultDirectory, KnapsackLogger logger, List<BundleActivator> activators) throws FileNotFoundException, IOException { Properties felixConfig = new Properties(); felixConfig.load(getFelixConfigFileInputStream(defaultDirectory)); for (Entry e : felixConfig.entrySet()) felixConfig.put(e.getKey(), LoadPropertiesFunction.evalSubsitutions(e.getValue().toString())); felixConfig.put(FELIX_LOGGER_INSTANCE, logger); felixConfig.put(FELIX_BUNDLE_INSTANCES, activators); return felixConfig; }

Example 9

Project: apache-cxf-dosgi   File: AggregatedActivator.java View source code Vote up 6 votes
void startEmbeddedActivators(BundleContext ctx) throws Exception { ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); for (String s : getActivators()) { try { Class<?> clazz = getClass().getClassLoader().loadClass(s); Object o = clazz.newInstance(); if (o instanceof BundleActivator) { BundleActivator ba = (BundleActivator) o; activators.add(ba); ba.start(ctx); } } catch (Throwable th) { th.printStackTrace(); } } SPIActivator sba = new SPIActivator(); sba.start(ctx); activators.add(sba); DSWActivator dsw = new DSWActivator(); dsw.start(ctx); activators.add(dsw); } finally { Thread.currentThread().setContextClassLoader(oldClassLoader); } }

Example 10

Project: jetty.project   File: PackageAdminServiceTracker.java View source code Vote up 6 votes
private void invokeFragmentActivators(ServiceReference sr) { PackageAdmin admin = (PackageAdmin) _context.getService(sr); Bundle[] fragments = admin.getFragments(_context.getBundle()); if (fragments == null) { return; } for (Bundle frag : fragments) { // find a convention to look for a class inside the fragment. try { String fragmentActivator = frag.getSymbolicName() + ".FragmentActivator"; Class<?> c = Class.forName(fragmentActivator); if (c != null) { BundleActivator bActivator = (BundleActivator) c.newInstance(); bActivator.start(_context); _activatedFragments.add(bActivator); } } catch (NullPointerException e) { // e.printStackTrace(); } catch (InstantiationException e) { // e.printStackTrace(); } catch (IllegalAccessException e) { // e.printStackTrace(); } catch (ClassNotFoundException e) { // e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } } }

Example 11

Project: bundlemaker   File: SystemBundleCopier.java View source code Vote up 6 votes
/ <p> </p> @param destinationDirectory @throws FileNotFoundException @throws IOException / public static void copySystemBundle(File destinationDirectory) throws FileNotFoundException, IOException { Assert.isNotNull(destinationDirectory); Assert.isTrue(destinationDirectory.isDirectory(), "destinationDirectory.isDirectory()"); URL url = BundleActivator.class.getProtectionDomain().getCodeSource().getLocation(); String file = BundleActivator.class.getProtectionDomain().getCodeSource().getLocation().getFile(); String fileName = file.substring(file.lastIndexOf("/") + 1); FileUtils.copy(url.openStream(), new FileOutputStream(new File(destinationDirectory, fileName)), new byte[1024]); }

Example 12

Project: papoose-core   File: BundleManager.java View source code Vote up 6 votes
public void performDeactivation(final BundleController bundleController) throws Exception { final BundleActivator bundleActivator = bundleController.getBundleActivator(); if (bundleActivator != null) { SecurityUtils.doPrivilegedExceptionAction(new PrivilegedExceptionAction<Void>() { public Void run() throws Exception { bundleActivator.stop(bundleController.getBundleContext()); return null; } }, framework.getAcc()); bundleController.setBundleActivator(null); } }

Example 13

Project: gravia   File: BundleIntegrationTest.java View source code Vote up 6 votes
@Deployment(name = BUNDLE_B, testable = false, managed = false) public static Archive<?> bundleB() { final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, BUNDLE_B); archive.addClasses(SimpleBundleActivator.class); archive.setManifest(new Asset() { @Override public InputStream openStream() { OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance(); builder.addBundleManifestVersion(2); builder.addBundleSymbolicName(archive.getName()); builder.addBundleVersion("1.0.0"); builder.addImportPackages(BundleActivator.class); builder.addBundleActivator(SimpleBundleActivator.class); return builder.openStream(); } }); return archive; }

Example 14

Project: arquillian-container-osgi   File: SimpleServiceTestCase.java View source code Vote up 6 votes
@Deployment public static JavaArchive createdeployment() { final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "test.jar"); archive.addClasses(SimpleActivator.class, SimpleService.class); archive.setManifest(new Asset() { public InputStream openStream() { OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance(); builder.addBundleSymbolicName(archive.getName()); builder.addBundleManifestVersion(2); builder.addBundleActivator(SimpleActivator.class.getName()); builder.addImportPackages(BundleActivator.class); return builder.openStream(); } }); return archive; }

Example 15

Project: nuxeo   File: RootRuntimeBundle.java View source code Vote up 6 votes
@Override public BundleActivator getActivator() { if (activator == null) { activator = new OSGIRuntimeTestActivator(); } return activator; }

Example 16

Project: karaf   File: KarafActivatorManager.java View source code Vote up 6 votes
void startKarafActivators() throws IOException { Enumeration<URL> urls = classLoader.getResources("META-INF/MANIFEST.MF"); while (urls != null && urls.hasMoreElements()) { URL url = urls.nextElement(); String className = null; InputStream is = url.openStream(); try { Manifest mf = new Manifest(is); className = mf.getMainAttributes().getValue(KARAF_ACTIVATOR); if (className != null) { BundleActivator activator = (BundleActivator) classLoader.loadClass(className).newInstance(); activator.start(framework.getBundleContext()); karafActivators.add(activator); } } catch (Throwable e) { if (className != null) { System.err.println("Error starting karaf activator " + className + ": " + e.getMessage()); LOG.log(Level.WARNING, "Error starting karaf activator " + className + " from url " + url, e); } } finally { if (is != null) { try { is.close(); } catch (IOException e) { } } } } }

Example 17

Project: jbosgi-framework   File: SimpleArquillianTestCase.java View source code Vote up 6 votes
@Deployment public static JavaArchive createDeployment() { final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "simple-arquillian"); archive.setManifest(new Asset() { public InputStream openStream() { OSGiManifestBuilder builder = OSGiManifestBuilder.newInstance(); builder.addBundleSymbolicName(archive.getName()); builder.addBundleManifestVersion(2); builder.addBundleActivator(SimpleActivator.class.getName()); builder.addExportPackages(SimpleService.class); builder.addImportPackages(BundleActivator.class); return builder.openStream(); } }); archive.addClasses(SimpleActivator.class, SimpleService.class); return archive; }

Example 18

Project: rt.equinox.framework   File: PluginConverterHook.java View source code Vote up 5 votes
@Override public void addHooks(final HookRegistry hookRegistry) { PluginConverterImpl tempConverter; try { tempConverter = new PluginConverterImpl(hookRegistry); } catch (IOException e) { throw new RuntimeException(e); } final PluginConverterImpl converter = tempConverter; hookRegistry.addBundleFileWrapperFactoryHook(new BundleFileWrapperFactoryHook() { @Override public BundleFileWrapper wrapBundleFile(BundleFile bundleFile, Generation generation, boolean base) { if (!base) { return null; } return new BundleFileWrapper(bundleFile) { @Override public BundleEntry getEntry(String path) { BundleEntry entry = getBundleFile().getEntry(path); if (!PluginConverterImpl.OSGI_BUNDLE_MANIFEST.equals(path)) { return entry; } Headers<String, String> headers = null; if (entry != null) { try { headers = Headers.parseManifest(entry.getInputStream()); } catch (Exception e) { throw new RuntimeException(e); } if (headers.containsKey(Constants.BUNDLE_MANIFESTVERSION)) { return entry; } if (headers.containsKey(Constants.BUNDLE_SYMBOLICNAME)) { return entry; } } try { File manifest = converter.convertManifest(getBaseFile(), null, true, null, true, null, false); if (manifest == null) { return entry; } return new FileBundleEntry(manifest, PluginConverterImpl.OSGI_BUNDLE_MANIFEST); } catch (PluginConversionException e) { throw new RuntimeException(e); } } }; } }); hookRegistry.addActivatorHookFactory(new ActivatorHookFactory() { @Override public BundleActivator createActivator() { return new BundleActivator() { ServiceRegistration<PluginConverter> reg; @Override public void start(BundleContext context) throws Exception { reg = context.registerService(PluginConverter.class, converter, null); } @Override public void stop(BundleContext context) throws Exception { reg.unregister(); } }; } }); }

Example 19

Project: javahaiku   File: FelixOsgiHost.java View source code Vote up 5 votes
protected void startFelix() { //load properties from felix embedded file Properties configProps = getProperties("default.properties"); // Copy framework properties from the system properties. Main.copySystemProperties(configProps); replaceSystemPackages(configProps); //struts, xwork and felix exported packages Properties strutsConfigProps = getProperties("struts-osgi.properties"); addExportedPackages(strutsConfigProps, configProps); //find bundles and adde em to autostart property addAutoStartBundles(configProps); // Bundle cache String storageDir = System.getProperty("java.io.tmpdir") + ".felix-cache"; configProps.setProperty(Constants.FRAMEWORK_STORAGE, storageDir); if (LOG.isDebugEnabled()) LOG.debug("Storing bundles at [#0]", storageDir); String cleanBundleCache = getServletContextParam("struts.osgi.clearBundleCache", "true"); if ("true".equalsIgnoreCase(cleanBundleCache)) { if (LOG.isDebugEnabled()) LOG.debug("Clearing bundle cache"); configProps.put(FelixConstants.FRAMEWORK_STORAGE_CLEAN, FelixConstants.FRAMEWORK_STORAGE_CLEAN_ONFIRSTINIT); } //other properties configProps.put(FelixConstants.SERVICE_URLHANDLERS_PROP, "false"); configProps.put(FelixConstants.LOG_LEVEL_PROP, getServletContextParam("struts.osgi.logLevel", "1")); configProps.put(FelixConstants.BUNDLE_CLASSPATH, "."); configProps.put(FelixConstants.FRAMEWORK_BEGINNING_STARTLEVEL, getServletContextParam("struts.osgi.runLevel", "3")); try { List<BundleActivator> list = new ArrayList<BundleActivator>(); list.add(new AutoActivator(configProps)); configProps.put(FelixConstants.SYSTEMBUNDLE_ACTIVATORS_PROP, list); felix = new Felix(configProps); felix.start(); if (LOG.isTraceEnabled()) LOG.trace("Apache Felix is running"); } catch (Exception ex) { throw new ConfigurationException("Couldn't start Apache Felix", ex); } addSpringOSGiSupport(); //add the bundle context to the ServletContext servletContext.setAttribute(OSGI_BUNDLE_CONTEXT, felix.getBundleContext()); }

Example 20

Project: cts2-framework   File: FelixPluginManager.java View source code Vote up 5 votes
/ Start. @throws OsgiContainerException the osgi container exception / public void start() throws OsgiContainerException { if (isRunning()) { return; } boolean suppressOsgi = this.cts2GeneralConfig.getBooleanProperty( SUPPRESS_OSGI_CONFIG_PROP_NAME, DEFALUE_SUPPRESS_OSGI_CONFIG_VALUE); // Create a case-insensitive configuration property map. final StringMap configMap = new StringMap(false); if(! suppressOsgi){ try { this.autodeployBundles(this.configInitializer.getPluginsDirectory()); } catch (IOException e) { throw new RuntimeException(e); } PackageScannerConfiguration scannerConfig = new DefaultPackageScannerConfiguration(); scannerConfig.getPackageIncludes().add("edu.mayo.cts2."); scannerConfig.getPackageIncludes().add("org.jaxen"); scannerConfig.getPackageIncludes().add("com.sun"); scannerConfig.getPackageIncludes().add("org.json"); scannerConfig.getPackageIncludes().add("org.springframework.oxm"); scannerConfig.getPackageExcludes().add("com.atlassian.plugins"); scannerConfig.getPackageExcludes().remove("org.apache.commons.logging"); scannerConfig.getPackageVersions().put("org.apache.commons.collections", "3.2.1"); String exports = exportsBuilder.getExports(scannerConfig); if(log.isDebugEnabled()){ log.debug("Exports: " + exports); } // Explicitly add the servlet exports; exports += ",javax.servlet;version=" + MIN_SERVLET_VERSION; exports += ",javax.servlet.http;version=" + MIN_SERVLET_VERSION; // Add the bundle provided service interface package and the core OSGi // packages to be exported from the class path via the system bundle. configMap.put(Constants.FRAMEWORK_SYSTEMPACKAGES_EXTRA, exports); } // Explicitly specify the directory to use for caching bundles. File felixCache = ConfigUtils.createSubDirectory( this.configInitializer.getContextConfigDirectory(), ".osgi-felix-cache"); configMap.put(FelixConstants.FRAMEWORK_STORAGE, felixCache.getPath()); configMap.put(FelixConstants.LOG_LEVEL_PROP, String.valueOf(felixLogger.getLogLevel())); configMap.put(FelixConstants.LOG_LOGGER_PROP, felixLogger); configMap.put(FelixConstants.FRAGMENT_ATTACHMENT_RESOLVETIME, felixLogger); String bootDelegation = getAtlassianSpecificOsgiSystemProperty(OSGI_BOOTDELEGATION); if ((bootDelegation == null) || (bootDelegation.trim().length() == 0)){ // These exist to work around JAXP problems. Specifically, bundles that use static factories to create JAXP // instances will execute FactoryFinder with the CCL set to the bundle. These delegations ensure the appropriate // implementation is found and loaded. bootDelegation = "weblogic,weblogic.," + "META-INF.services," + "com.yourkit,com.yourkit.," + "com.chronon,com.chronon.," + "com.jprofiler,com.jprofiler.," + "org.apache.xerces,org.apache.xerces.," + "org.apache.xalan,org.apache.xalan.," + "org.apache.xpath.," + "org.apache.xml.serializer," + "org.springframework.stereotype,"+ "org.springframework.web.bind.annotation," + "org.springframework.web.servlet," + "javax.," + "org.osgi.," + "org.apache.felix.," + "sun.," + "com.sun.," + "com.sun.xml.bind.v2," + "com.icl.saxon"; } configMap.put(FelixConstants.FRAMEWORK_BOOTDELEGATION, bootDelegation); configMap.put(FelixConstants.IMPLICIT_BOOT_DELEGATION_PROP, "false"); configMap.put(FelixConstants.FRAMEWORK_BUNDLE_PARENT, FelixConstants.FRAMEWORK_BUNDLE_PARENT_FRAMEWORK); if (log.isDebugEnabled()) { log.debug("Felix configuration: " + configMap); } if(! suppressOsgi){ validateConfiguration(configMap); } try { final List<BundleActivator> hostServices = new ArrayList<BundleActivator>(); for(Entry<String, Object> bean : this.applicationContext.getBeansWithAnnotation(ExportedService.class).entrySet()){ Object service = bean.getValue(); ExportedService annotation = service.getClass().getAnnotation(ExportedService.class); Class<?>[] interfaces = annotation.value(); if(interfaces.length == 1 && interfaces[0] == Void.class){ interfaces = ClassUtils.getAllInterfaces(service); } hostServices.add(new HostActivator(service, interfaces)); } configMap.put(FelixConstants.SYSTEMBUNDLE_ACTIVATORS_PROP, hostServices); // Now create an instance of the framework with // our configuration properties and activator. felix = new Felix(configMap); felixRunning = true; felix.init(); BundleContext context = felix.getBundleContext(); ServiceTracker tracker = new ServiceTracker( felix.getBundleContext(), ConfigurationAdmin.class.getName(), new ServiceTrackerCustomizer(){ @Override public Object addingService(ServiceReference reference) { ConfigurationAdmin cm = (ConfigurationAdmin) felix.getBundleContext().getService(reference); try { for(Entry<String, Properties> entrySet : supplementalPropetiesLoader.getOverriddenProperties().entrySet()){ Configuration config = cm.getConfiguration(entrySet.getKey()); config.update(entrySet.getValue()); } } catch (IOException e) { throw new RuntimeException(e); } return cm; } @Override public void modifiedService(ServiceReference reference, Object service) { // } @Override public void removedService(ServiceReference reference, Object service) { // } }); tracker.open(); this.trackers.add(tracker); if(suppressOsgi){ new ConfigurationManager().start(context); } else { FileFilter fileOnlyFilter = new FileFilter(){ @Override public boolean accept(File file) { return !file.isDirectory(); } }; for(File bundle : this.configInitializer.getPluginsDirectory().listFiles(fileOnlyFilter)){ Bundle installedBundle = felix.getBundleContext().installBundle(bundle.toURI().toString()); try { if(installedBundle.getHeaders().get(Constants.FRAGMENT_HOST) != null){ log.info("Not Auto-starting Fragment bundle: " + installedBundle.getSymbolicName()); } else { installedBundle.start(); log.info("Auto-starting system bundle: " + installedBundle.getSymbolicName()); } } catch (BundleException e) { log.warn("Bundle: " + installedBundle.getSymbolicName() + " failed to start.", e); } } } felix.start(); this.initializeNonOsgiPlugins(); for(String bean : this.applicationContext.getBeanNamesForType(ExtensionPoint.class)){ ExtensionPoint extensionPoint = this.applicationContext.getBean(bean, ExtensionPoint.class); this.registerExtensionPoint(extensionPoint); } servletContext.setAttribute( BundleContext.class.getName(), context); servletContext.setAttribute( PluginManager.class.getName(), this); } catch (final Exception ex) { throw new OsgiContainerException("Unable to start OSGi container", ex); } }

FileFilter 1 plus Keygen - Soft with Activation Keys
Soft Keygen Full Version - L-Lingo Vietnamese 4.0 Full and
DigiPaint for Adobe After Effects 2.1 Serial number with
All Classes (Java Platform SE 7 ) - Oracle Help Center
Ss141213: How to embed GlassFish in an existing


208
Sitemap