public class SubstitutionGroupLeakPreventer extends Object implements Adapter
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 of XSDElementDeclaration based on qualified
name.
| Constructor and Description |
|---|
SubstitutionGroupLeakPreventer() |
| Modifier and Type | Method and Description |
|---|---|
Notifier |
getTarget() |
boolean |
isAdapterForType(Object type) |
void |
notifyChanged(Notification notification) |
void |
setTarget(Notifier newTarget) |
public Notifier getTarget()
getTarget in interface Adapterpublic void setTarget(Notifier newTarget)
setTarget in interface Adapterpublic boolean isAdapterForType(Object type)
isAdapterForType in interface Adapterpublic void notifyChanged(Notification notification)
notifyChanged in interface AdapterCopyright © 1996–2019 Geotools. All rights reserved.