コード例 #1
0
  private List<ObjectAssociation> createContributeeAssociations() {
    if (isService() || isValue()) {
      return Collections.emptyList();
    }

    final List<ObjectAssociation> contributeeAssociations = Lists.newArrayList();
    final List<ObjectAdapter> services = getServicesProvider().getServices();
    for (final ObjectAdapter serviceAdapter : services) {
      addContributeeAssociationsIfAny(serviceAdapter, contributeeAssociations);
    }
    return contributeeAssociations;
  }
コード例 #2
0
 @Override
 public List<ObjectSpecification> interfaces() {
   return Collections.unmodifiableList(interfaces);
 }
コード例 #3
0
 @Override
 public List<ObjectAction> getObjectActions(
     final ActionType type, final Contributed contributed, final Filter<ObjectAction> filter) {
   return getObjectActions(Collections.singletonList(type), contributed, filter);
 }
コード例 #4
0
 public List<ObjectSpecification> toList() {
   return Collections.unmodifiableList(classes);
 }