Package org.geotools.gml2
Class SubstitutionGroupLeakPreventer
Object
SubstitutionGroupLeakPreventer
- All Implemented Interfaces:
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 of XSDElementDeclaration
based on qualified name.
- Author:
- Justin Deoliveira, OpenGeo
-
Nested Class Summary
Nested classes/interfaces inherited from interface Adapter
Adapter.Internal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNotifier
boolean
isAdapterForType
(Object type) void
notifyChanged
(Notification notification) void
setTarget
(Notifier newTarget)
-
Constructor Details
-
SubstitutionGroupLeakPreventer
public SubstitutionGroupLeakPreventer()
-
-
Method Details
-
getTarget
public Notifier getTarget()- Specified by:
getTarget
in interfaceAdapter
-
setTarget
public void setTarget(Notifier newTarget) - Specified by:
setTarget
in interfaceAdapter
-
isAdapterForType
- Specified by:
isAdapterForType
in interfaceAdapter
-
notifyChanged
public void notifyChanged(Notification notification) - Specified by:
notifyChanged
in interfaceAdapter
-