|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xwiki.component.event.AbstractComponentDescriptorEvent
public abstract class AbstractComponentDescriptorEvent
Base class for events about components descriptors.
Constructor Summary | |
---|---|
AbstractComponentDescriptorEvent()
Watches all roles (whenever a component is added it'll trigger this event). |
|
AbstractComponentDescriptorEvent(Class<?> role)
Deprecated. since 4.4RC1 use AbstractComponentDescriptorEvent(Type) instead |
|
AbstractComponentDescriptorEvent(Class<?> role,
String roleHint)
Deprecated. since 4.4RC1 use AbstractComponentDescriptorEvent(Type, String) instead |
|
AbstractComponentDescriptorEvent(Type roleType)
|
|
AbstractComponentDescriptorEvent(Type roleType,
String roleHint)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Class<?> |
getRole()
|
String |
getRoleHint()
|
Type |
getRoleType()
|
int |
hashCode()
|
boolean |
matches(Object otherEvent)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractComponentDescriptorEvent()
@Deprecated public AbstractComponentDescriptorEvent(Class<?> role)
AbstractComponentDescriptorEvent(Type)
instead
role
- the component role to watch (all components matching this role will trigger this event)public AbstractComponentDescriptorEvent(Type roleType)
roleType
- the component role type to watch (all components matching this role will trigger this event)@Deprecated public AbstractComponentDescriptorEvent(Class<?> role, String roleHint)
AbstractComponentDescriptorEvent(Type, String)
instead
role
- the component role to watchroleHint
- the component rolehint to watchpublic AbstractComponentDescriptorEvent(Type roleType, String roleHint)
roleType
- the component role to watchroleHint
- the component rolehint to watchMethod Detail |
---|
public Class<?> getRole()
getRole
in interface ComponentDescriptorEvent
public Type getRoleType()
getRoleType
in interface ComponentDescriptorEvent
public String getRoleHint()
getRoleHint
in interface ComponentDescriptorEvent
public boolean matches(Object otherEvent)
matches
in interface Event
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |