|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.springsource.bundlor.internal.support.StandardReadablePartialManifest
com.springsource.bundlor.internal.support.IncrementalReadablePartialManifest
class IncrementalReadablePartialManifest
Extension to StandardReadablePartialManifest
to allow for re-recording of type dependencies in an incremental
manner
Nested Class Summary | |
---|---|
(package private) class |
IncrementalReadablePartialManifest.TypeDependencies
Structure that keeps associations between a type and its dependencies |
Field Summary | |
---|---|
private java.util.Stack<java.lang.String> |
currentlyAnalysedEntries
|
private java.util.Map<java.lang.String,IncrementalReadablePartialManifest.TypeDependencies> |
recordedTypeDependencies
Association of analyzed types and their dependencies |
Fields inherited from class com.springsource.bundlor.internal.support.StandardReadablePartialManifest |
---|
EMPTY_SET, exportedPackages, unsatisfiedTypesByPackage |
Constructor Summary | |
---|---|
IncrementalReadablePartialManifest()
|
Method Summary | |
---|---|
private IncrementalReadablePartialManifest.TypeDependencies |
createTypeDependencies(java.lang.String fullyQualifiedClassName)
|
java.lang.String |
currentEntry()
|
void |
onBeginEntry(java.lang.String name)
Start scanning of entry identified by given name . |
void |
onEndEntry()
End scanning of latest started entry. |
void |
recordReferencedPackage(java.lang.String fullyQualifiedPackageName)
Records that the supplied package is referenced by the artefact being analysed. |
void |
recordReferencedType(java.lang.String fullyQualifiedTypeName)
Records that the supplied type is referenced by the code being analysed. |
void |
recordType(java.lang.String fullyQualifiedTypeName)
Records the existence of a type |
void |
recordUsesPackage(java.lang.String usingPackage,
java.lang.String usedPackage)
Records a uses directive member for a given package export. |
private void |
unrecordType()
Remove a recorded type from the partial manifest; also removes all induced dependencies that this type created. |
Methods inherited from class com.springsource.bundlor.internal.support.StandardReadablePartialManifest |
---|
condense, getExportedPackages, getImportedPackages, getPackageName, getUnsatisfiedTypes, getUses, isRecordablePackage, recordExportPackage, removeImportedType, removeReferencedPackage, removeUses, unrecordExportPackage, unrecordType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.Map<java.lang.String,IncrementalReadablePartialManifest.TypeDependencies> recordedTypeDependencies
private final java.util.Stack<java.lang.String> currentlyAnalysedEntries
Constructor Detail |
---|
IncrementalReadablePartialManifest()
Method Detail |
---|
public void recordReferencedType(java.lang.String fullyQualifiedTypeName)
recordReferencedType
in interface PartialManifest
recordReferencedType
in class StandardReadablePartialManifest
fullyQualifiedTypeName
- the fully-qualified name of the referenced typepublic void recordReferencedPackage(java.lang.String fullyQualifiedPackageName)
recordReferencedPackage
in interface PartialManifest
recordReferencedPackage
in class StandardReadablePartialManifest
fullyQualifiedPackageName
- The fully-qualified name of the packagepublic void recordType(java.lang.String fullyQualifiedTypeName)
recordType
in interface PartialManifest
recordType
in class StandardReadablePartialManifest
fullyQualifiedTypeName
- The fully qualified name of the typepublic void recordUsesPackage(java.lang.String usingPackage, java.lang.String usedPackage)
uses
directive member for a given package export.
recordUsesPackage
in interface PartialManifest
recordUsesPackage
in class StandardReadablePartialManifest
usingPackage
- the package that is using the package.usedPackage
- the package being used.private void unrecordType()
fullyQualifiedTypeName
- the type to removeprivate IncrementalReadablePartialManifest.TypeDependencies createTypeDependencies(java.lang.String fullyQualifiedClassName)
public void onBeginEntry(java.lang.String name)
EntryScannerListener
name
.
onBeginEntry
in interface EntryScannerListener
public void onEndEntry()
EntryScannerListener
onEndEntry
in interface EntryScannerListener
public java.lang.String currentEntry()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |