public class ReferencingDirectiveLeakPreventer extends Object implements Adapter
When an application schema imports the gml schema a link from the gml schema to the app schema
is created. Since the gml schema is a singleton we store permenantly this causes a memory leak.
This adapter watches the XSDSchema.getReferencingDirectives()
list and ensures that it
does not continue to grow by only allowing unique schema references (in terms of target
namespace) to reference it.
Constructor and Description |
---|
ReferencingDirectiveLeakPreventer() |
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.