layerInterceptor

Identifier:
net.refractions.udig.project.layerInterceptor

Since:
[Enter the first release in which this extension point appears.]

Description:
Layer Interceptors allow customized actions to be executed at certain points in a Layer's life cycle. The points available are: Layer creation, Layer being added to a Map and layer being removed from a map.

Configuration Markup:

<!ELEMENT extension (layerCreated* , layerAdded* , layerRemoved*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT layerCreated EMPTY>

<!ATTLIST layerCreated

id    CDATA #REQUIRED

name  CDATA #IMPLIED

class CDATA #REQUIRED>

An interceptor that will be ran when a layer is created. This is only ran if the layer is created by a Map's LayerFactory class. Not ProjectPackage's createLayer() methods.



<!ELEMENT layerAdded EMPTY>

<!ATTLIST layerAdded

id    CDATA #REQUIRED

name  CDATA #IMPLIED

class CDATA #REQUIRED>

An interceptor that will be ran when a layer is added to a map.



<!ELEMENT layerRemoved EMPTY>

<!ATTLIST layerRemoved

id    CDATA #REQUIRED

name  CDATA #IMPLIED

class CDATA #REQUIRED>

An interceptor that will be ran when a layer is about to be removed from a map. The method is called before the layer has been removed.



Examples:
[Enter extension point usage example here.]

Supplied Implementation:
[Enter information about supplied implementation of this extension point.]