public abstract class AbstractComponentDescriptorEvent extends Object implements ComponentDescriptorEvent
Constructor and Description |
---|
AbstractComponentDescriptorEvent()
Watches all roles (whenever a component is added it'll trigger this event).
|
AbstractComponentDescriptorEvent(Class<?> role) |
AbstractComponentDescriptorEvent(Class<?> role,
String roleHint) |
AbstractComponentDescriptorEvent(Type roleType) |
AbstractComponentDescriptorEvent(Type roleType,
String roleHint) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Class<?> |
getRole() |
String |
getRoleHint() |
Type |
getRoleType() |
int |
hashCode() |
boolean |
matches(Object otherEvent) |
String |
toString() |
public AbstractComponentDescriptorEvent()
public AbstractComponentDescriptorEvent(Class<?> role)
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)public AbstractComponentDescriptorEvent(Class<?> role, String roleHint)
role
- the component role to watchroleHint
- the component rolehint to watchpublic Class<?> getRole()
getRole
in interface ComponentDescriptorEvent
public Type getRoleType()
getRoleType
in interface ComponentDescriptorEvent
public String getRoleHint()
getRoleHint
in interface ComponentDescriptorEvent
Copyright © 2004–2018 XWiki. All rights reserved.