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 Adapter
public void setTarget(Notifier newTarget)
setTarget
in interface Adapter
public boolean isAdapterForType(Object type)
isAdapterForType
in interface Adapter
public void notifyChanged(Notification notification)
notifyChanged
in interface Adapter
Copyright © 1996–2019 Geotools. All rights reserved.