Package org.apache.aries.subsystem.core.archive

Examples of org.apache.aries.subsystem.core.archive.ProvideCapabilityCapability


 
  private void computeGenericCapabilities() {
    ProvideCapabilityHeader pch = (ProvideCapabilityHeader)manifest.getHeader(ProvideCapabilityHeader.NAME);
    if (pch != null)
      for (ProvideCapabilityHeader.Clause clause : pch.getClauses())
        capabilities.add(new ProvideCapabilityCapability(clause, this));
  }
View Full Code Here


 
  private static void setExportIsolationPolicy(RegionFilterBuilder builder, ProvideCapabilityHeader header, BasicSubsystem subsystem) throws InvalidSyntaxException {
    if (header == null)
      return;
    for (ProvideCapabilityHeader.Clause clause : header.getClauses()) {
      ProvideCapabilityCapability capability = new ProvideCapabilityCapability(clause, subsystem);
      String policy = capability.getNamespace();
      StringBuilder filter = new StringBuilder("(&");
      for (Entry<String, Object> attribute : capability.getAttributes().entrySet())
        filter.append('(').append(attribute.getKey()).append('=').append(attribute.getValue()).append(')');
      filter.append(')');
      if (logger.isDebugEnabled())
        logger.debug("Allowing " + policy + " of " + filter);
      builder.allow(policy, filter.toString());
View Full Code Here

TOP

Related Classes of org.apache.aries.subsystem.core.archive.ProvideCapabilityCapability

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.