public abstract class Descriptor extends Object
Modifier | Constructor and Description |
---|---|
protected |
Descriptor(String name)
Constructor for a new descriptor
|
Modifier and Type | Method and Description |
---|---|
protected void |
aggregate(Descriptor d)
Aggregate with data from provided descriptor
|
protected void |
checkLocked()
Internal method for checking locked state
|
Set<org.osgi.resource.Capability> |
getCapabilities()
Return the list of capabilities.
|
Set<PackageInfo> |
getDynamicImportedPackages()
Return a set of dynamic imported packages
|
Set<PackageInfo> |
getExportedPackages()
Return a set of exported packages
|
Set<PackageInfo> |
getImportedPackages()
Return a set of imported packages
|
String |
getName()
Returns the name of the entity associated with this descriptor.
|
Set<org.apache.sling.feature.MatchingRequirement> |
getRequirements()
Return the list of requirements.
|
boolean |
isLocked()
Check if the descriptor is locked
|
void |
lock()
Lock the descriptor.
|
String |
toString() |
protected Descriptor(String name)
name
- NameIllegalArgumentException
- if name is null
public void lock()
public final boolean isLocked()
true
if locked.protected void checkLocked()
IllegalStateException
- If lockedprotected void aggregate(Descriptor d)
d
- The other descriptorpublic final Set<PackageInfo> getExportedPackages()
public final Set<PackageInfo> getImportedPackages()
public final Set<PackageInfo> getDynamicImportedPackages()
public String getName()
public final Set<org.apache.sling.feature.MatchingRequirement> getRequirements()
public final Set<org.osgi.resource.Capability> getCapabilities()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.