|
Lines 403-408
Link Here
|
| 403 |
} |
403 |
} |
| 404 |
|
404 |
|
| 405 |
@Override |
405 |
@Override |
|
|
406 |
public BundleRevision getResource() { |
| 407 |
return getRevision(); |
| 408 |
} |
| 409 |
|
| 410 |
@Override |
| 406 |
public BundleRevision getRevision() { |
411 |
public BundleRevision getRevision() { |
| 407 |
return new StubBundleRevision(bundle(this.bundleSymbolicName)); |
412 |
return new StubBundleRevision(bundle(this.bundleSymbolicName)); |
| 408 |
} |
413 |
} |
|
Lines 481-486
Link Here
|
| 481 |
} |
486 |
} |
| 482 |
|
487 |
|
| 483 |
@Override |
488 |
@Override |
|
|
489 |
public BundleRevision getResource() { |
| 490 |
return getRevision(); |
| 491 |
} |
| 492 |
|
| 493 |
@Override |
| 484 |
public BundleRevision getRevision() { |
494 |
public BundleRevision getRevision() { |
| 485 |
return new StubBundleRevision(bundle(this.bundleSymbolicName)); |
495 |
return new StubBundleRevision(bundle(this.bundleSymbolicName)); |
| 486 |
} |
496 |
} |
|
Lines 543-548
Link Here
|
| 543 |
} |
553 |
} |
| 544 |
|
554 |
|
| 545 |
@Override |
555 |
@Override |
|
|
556 |
public BundleRevision getResource() { |
| 557 |
return getRevision(); |
| 558 |
} |
| 559 |
|
| 560 |
@Override |
| 546 |
public BundleRevision getRevision() { |
561 |
public BundleRevision getRevision() { |
| 547 |
return this.bundleRevision; |
562 |
return this.bundleRevision; |
| 548 |
} |
563 |
} |
|
Lines 552-557
Link Here
|
| 552 |
throw new UnsupportedOperationException(); |
567 |
throw new UnsupportedOperationException(); |
| 553 |
} |
568 |
} |
| 554 |
|
569 |
|
|
|
570 |
@Override |
| 571 |
public boolean matches(Capability capability) { |
| 572 |
if (!(capability instanceof BundleCapability)) |
| 573 |
return false; |
| 574 |
return matches((BundleCapability) capability); |
| 575 |
} |
| 555 |
} |
576 |
} |
| 556 |
|
577 |
|
| 557 |
final class StubBundleRevision implements BundleRevision { |
578 |
final class StubBundleRevision implements BundleRevision { |
|
Lines 597-602
Link Here
|
| 597 |
throw new UnsupportedOperationException(); |
618 |
throw new UnsupportedOperationException(); |
| 598 |
} |
619 |
} |
| 599 |
|
620 |
|
|
|
621 |
@SuppressWarnings({"cast", "unchecked", "rawtypes"}) |
| 622 |
@Override |
| 623 |
public List<Capability> getCapabilities(String namespace) { |
| 624 |
return (List<Capability>) (List) getDeclaredCapabilities(namespace); |
| 625 |
} |
| 626 |
|
| 627 |
@SuppressWarnings({"cast", "unchecked", "rawtypes"}) |
| 628 |
@Override |
| 629 |
public List<Requirement> getRequirements(String namespace) { |
| 630 |
return (List<Requirement>) (List) getDeclaredRequirements(namespace); |
| 631 |
} |
| 600 |
} |
632 |
} |
| 601 |
|
633 |
|
| 602 |
} |
634 |
} |