Package org.eclipse.osgi.framework.internal.core

Examples of org.eclipse.osgi.framework.internal.core.FilterImpl


        return false;
      String platformFilter = description.getPlatformFilter();
      if (platformFilter != null) {
        try {
          // add any new platform filter propery keys this bundle is using
          FilterImpl filter = FilterImpl.newInstance(platformFilter);
          addPlatformPropertyKeys(filter.getAttributes());
        } catch (InvalidSyntaxException e) {
          // ignore this is handled in another place
        }
      }
      NativeCodeSpecification nativeCode = description.getNativeCodeSpecification();
      if (nativeCode != null) {
        NativeCodeDescription[] suppliers = nativeCode.getPossibleSuppliers();
        for (int i = 0; i < suppliers.length; i++) {
          FilterImpl filter = (FilterImpl) suppliers[i].getFilter();
          if (filter != null)
            addPlatformPropertyKeys(filter.getAttributes());
        }
      }
      resolved = false;
      getDelta().recordBundleAdded((BundleDescriptionImpl) description);
      if (getSystemBundle().equals(description.getSymbolicName()))
View Full Code Here


  FilteredServiceListener(final BundleContextImpl context, final ServiceListener listener, final String filterstring) throws InvalidSyntaxException {
    if (filterstring == null) {
      this.filter = null;
      this.objectClass = null;
    } else {
      FilterImpl filterImpl = FilterImpl.newInstance(filterstring);
      String clazz = filterImpl.getRequiredObjectClass();
      if (clazz == null) {
        this.objectClass = null;
        this.filter = filterImpl;
      } else {
        this.objectClass = clazz.intern(); /*intern the name for future identity comparison */
 
View Full Code Here

  FilteredServiceListener(final BundleContextImpl context, final ServiceListener listener, final String filterstring) throws InvalidSyntaxException {
    if (filterstring == null) {
      this.filter = null;
      this.objectClass = null;
    } else {
      FilterImpl filterImpl = FilterImpl.newInstance(filterstring);
      String clazz = filterImpl.getRequiredObjectClass();
      if (clazz == null) {
        this.objectClass = null;
        this.filter = filterImpl;
      } else {
        this.objectClass = clazz.intern(); /*intern the name for future identity comparison */
 
View Full Code Here

        return false;
      String platformFilter = description.getPlatformFilter();
      if (platformFilter != null) {
        try {
          // add any new platform filter propery keys this bundle is using
          FilterImpl filter = FilterImpl.newInstance(platformFilter);
          addPlatformPropertyKeys(filter.getAttributes());
        } catch (InvalidSyntaxException e) {
          // ignore this is handled in another place
        }
      }
      NativeCodeSpecification nativeCode = description.getNativeCodeSpecification();
      if (nativeCode != null) {
        NativeCodeDescription[] suppliers = nativeCode.getPossibleSuppliers();
        for (int i = 0; i < suppliers.length; i++) {
          FilterImpl filter = (FilterImpl) suppliers[i].getFilter();
          if (filter != null)
            addPlatformPropertyKeys(filter.getAttributes());
        }
      }
      resolved = false;
      getDelta().recordBundleAdded((BundleDescriptionImpl) description);
      if (getSystemBundle().equals(description.getSymbolicName()))
View Full Code Here

   *
   * @see Filter
   */
  public static Filter createFilter(String filter)
      throws InvalidSyntaxException {
    return new FilterImpl(filter);
  }
View Full Code Here

              pos = filter.indexOf("signer",pos); //$NON-NLS-1$
            } //end while (pos != -1)
            filter = filterBuf.toString();
          } //end if (pos != -1)

          filterImpl = new FilterImpl(filter);
      } catch (InvalidSyntaxException e) {
        //we will return null
      }
      }        
      return filterImpl;
View Full Code Here

      return false;
    String platformFilter = description.getPlatformFilter();
    if (platformFilter != null) {
      try {
        // add any new platform filter propery keys this bundle is using
        FilterImpl filter = (FilterImpl) FrameworkUtil.createFilter(platformFilter);
        addPlatformPropertyKeys(filter.getAttributes());
      } catch (InvalidSyntaxException e) {
        // ignore this is handled in another place
      }
    }
    resolved = false;
View Full Code Here

TOP

Related Classes of org.eclipse.osgi.framework.internal.core.FilterImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.