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 ofXSDElementDeclaration
based on qualified name.- Author:
- Justin Deoliveira, OpenGeo
-
-
Constructor Summary
Constructors Constructor Description SubstitutionGroupLeakPreventer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Notifier
getTarget()
boolean
isAdapterForType(Object type)
void
notifyChanged(Notification notification)
void
setTarget(Notifier newTarget)
-
-
-
Method Detail
-
getTarget
public Notifier getTarget()
- Specified by:
getTarget
in interfaceAdapter
-
setTarget
public void setTarget(Notifier newTarget)
- Specified by:
setTarget
in interfaceAdapter
-
isAdapterForType
public boolean isAdapterForType(Object type)
- Specified by:
isAdapterForType
in interfaceAdapter
-
notifyChanged
public void notifyChanged(Notification notification)
- Specified by:
notifyChanged
in interfaceAdapter
-
-