com.sapportals.wcm.crt.component

Class ComponentEvent

java.lang.Object
  extended by com.sapportals.wcm.crt.component.ComponentEvent

public class ComponentEvent
extends Object

The event contains the component's URI and java class object. The class object can be used in event handler code to check for the type of a component. For example the components interfaces can be queried (instead of looking up the component first and using instanceof ):

 if (ISomeInterface.class.isAssignableFrom(event.getComponentClass())) {
   ISomeInterface c = (ISomeInterface)CrtSystem.getInstance().lookupComponentByUri(event.getComponentUri());
 }
 

Copyright (c) SAP AG 2001-2002


Nested Class Summary
static class ComponentEvent.Type
           
 
Constructor Summary
ComponentEvent(ComponentUri uri, Class componentClass, ComponentEvent.Type type)
           
 
Method Summary
 Class getComponentClass()
           
 ComponentUri getComponentUri()
           
 ComponentEvent.Type getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentEvent

public ComponentEvent(ComponentUri uri,
                      Class componentClass,
                      ComponentEvent.Type type)
Method Detail

getComponentUri

public ComponentUri getComponentUri()

getComponentClass

public Class getComponentClass()

getType

public ComponentEvent.Type getType()
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice