Package org.geotools.gml2
Class SubstitutionGroupLeakPreventer
- Object
- 
- SubstitutionGroupLeakPreventer
 
- 
- All Implemented Interfaces:
- Adapter
 
 public class SubstitutionGroupLeakPreventer extends Object implements Adapter Adapter for preventing memory leaks created by substitution group affiliations.When an application schema contains an element in the gml:_Feature substitution group a link from gml:_Feature back to the app schema element is created. Since the gml schema (and thus the gml:_Feature) element is a singleton this creates a memory leak. This adapter watches the XSDElementDeclaration.getSubstitutionGroup()of the gml:_Feature element and prevents it from growing in size by making it a unique list ofXSDElementDeclarationbased on qualified name.- Author:
- Justin Deoliveira, OpenGeo
 
- 
- 
Constructor SummaryConstructors Constructor Description SubstitutionGroupLeakPreventer()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description NotifiergetTarget()booleanisAdapterForType(Object type)voidnotifyChanged(Notification notification)voidsetTarget(Notifier newTarget)
 
- 
- 
- 
Method Detail- 
getTargetpublic Notifier getTarget() - Specified by:
- getTargetin interface- Adapter
 
 - 
setTargetpublic void setTarget(Notifier newTarget) - Specified by:
- setTargetin interface- Adapter
 
 - 
isAdapterForTypepublic boolean isAdapterForType(Object type) - Specified by:
- isAdapterForTypein interface- Adapter
 
 - 
notifyChangedpublic void notifyChanged(Notification notification) - Specified by:
- notifyChangedin interface- Adapter
 
 
- 
 
-