Package org.osgi.service.component.annotations

Examples of org.osgi.service.component.annotations.ReferenceCardinality


      final String nameTarget = Util.isValidText(target) ? target : "*";
      final String nameDefault = nameType + "/" + nameTarget;
      reference.name = nameDefault;
    }

    final ReferenceCardinality cardinality = UtilAsm.asEnum(annoNode,
        "cardinality");
    if (cardinality != null) {
      reference.cardinality = cardinality;
    }

View Full Code Here


      reference.name = nameDefault;
    }

    final ClassLoader loader = type.getClassLoader();

    final ReferenceCardinality cardinality = UtilAsm.asEnum(loader,
        annoNode, "cardinality");
    if (cardinality != null) {
      reference.cardinality = cardinality;
    }
View Full Code Here

  }

  @Override
  public String toString(final Object instance) {

    final ReferenceCardinality cardinality = (ReferenceCardinality) instance;

    return cardinality.value;

  }
View Full Code Here

  }

  @Override
  public Object fromString(final String value) {

    final ReferenceCardinality cardinality = ReferenceCardinality
        .from(value);

    return cardinality;

  }
View Full Code Here

  }

  @Override
  public String toString(final Object instance) {

    final ReferenceCardinality cardinality = (ReferenceCardinality) instance;

    return cardinality.value;

  }
View Full Code Here

  }

  @Override
  public Object fromString(final String value) {

    final ReferenceCardinality cardinality = ReferenceCardinality
        .from(value);

    return cardinality;

  }
View Full Code Here

  }

  @Override
  public String toString(final Object instance) {

    final ReferenceCardinality cardinality = (ReferenceCardinality) instance;

    return cardinality.value;

  }
View Full Code Here

  }

  @Override
  public Object fromString(final String value) {

    final ReferenceCardinality cardinality = ReferenceCardinality
        .from(value);

    return cardinality;

  }
View Full Code Here

      final String nameTarget = Util.isValidText(target) ? target : "*";
      final String nameDefault = nameType + "/" + nameTarget;
      reference.name = nameDefault;
    }

    final ReferenceCardinality cardinality = UtilAsm.asEnum(annoNode,
        "cardinality");
    if (cardinality != null) {
      reference.cardinality = cardinality;
    }

View Full Code Here

  }

  @Override
  public String toString(final Object instance) {

    final ReferenceCardinality entry = (ReferenceCardinality) instance;

    /** Workaround for OSGI final specification change. */
    final String value = UtilJdk.readField(entry, "value");

    return value;
View Full Code Here

TOP

Related Classes of org.osgi.service.component.annotations.ReferenceCardinality

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.