* events generated by this component. Don't add a JavaDoc comment here, we
* use the default documentation from implemented interface.
*/
- public void addListener(Class eventType, Object object, Method method) {
+ public void addListener(Class<?> eventType, Object object, Method method) {
if (listenerList == null) {
listenerList = new LinkedHashSet<ListenerMethod>();
}
* listen events generated by this component. Don't add a JavaDoc comment
* here, we use the default documentation from implemented interface.
*/
- public void addListener(Class eventType, Object object, String methodName) {
+ public void addListener(Class<?> eventType, Object object, String methodName) {
if (listenerList == null) {
listenerList = new LinkedHashSet<ListenerMethod>();
}
* a JavaDoc comment here, we use the default documentation from implemented
* interface.
*/
- public void removeListener(Class eventType, Object target) {
+ public void removeListener(Class<?> eventType, Object target) {
if (listenerList != null) {
final Iterator<ListenerMethod> i = listenerList.iterator();
while (i.hasNext()) {
* Don't add a JavaDoc comment here, we use the default documentation from
* implemented interface.
*/
- public void removeListener(Class eventType, Object target, Method method) {
+ public void removeListener(Class<?> eventType, Object target, Method method) {
if (listenerList != null) {
final Iterator<ListenerMethod> i = listenerList.iterator();
while (i.hasNext()) {
* Don't add a JavaDoc comment here, we use the default documentation from
* implemented interface.
*/
- public void removeListener(Class eventType, Object target, String methodName) {
+ public void removeListener(Class<?> eventType, Object target,
+ String methodName) {
// Find the correct method
final Method[] methods = target.getClass().getMethods();
* unless <code>method</code> has exactly one match in
* <code>object</code>
*/
- public void addListener(Class eventType, Object object, Method method);
+ public void addListener(Class<?> eventType, Object object, Method method);
/**
* <p>
* unless <code>method</code> has exactly one match in
* <code>object</code>
*/
- public void addListener(Class eventType, Object object, String methodName);
+ public void addListener(Class<?> eventType, Object object, String methodName);
/**
* Removes all registered listeners matching the given parameters. Since
* the target object that has registered to listen to events of
* type <code>eventType</code> with one or more methods.
*/
- public void removeListener(Class eventType, Object target);
+ public void removeListener(Class<?> eventType, Object target);
/**
* Removes one registered listener method. The given method owned by the
* the method owned by the target that's registered to listen to
* events of type eventType.
*/
- public void removeListener(Class eventType, Object target, Method method);
+ public void removeListener(Class<?> eventType, Object target, Method method);
/**
* <p>
* the name of the method owned by <code>target</code> that's
* registered to listen to events of type <code>eventType</code>.
*/
- public void removeListener(Class eventType, Object target, String methodName);
+ public void removeListener(Class<?> eventType, Object target,
+ String methodName);
}
* @param method
* the activation method.
*/
- public void addListener(Class eventType, Object target, Method method) {
+ public void addListener(Class<?> eventType, Object target, Method method) {
if (eventRouter == null) {
eventRouter = new EventRouter();
}
* @param methodName
* the name of the activation method.
*/
- public void addListener(Class eventType, Object target, String methodName) {
+ public void addListener(Class<?> eventType, Object target, String methodName) {
if (eventRouter == null) {
eventRouter = new EventRouter();
}
* the target object that has registered to listen to events of
* type <code>eventType</code> with one or more methods.
*/
- public void removeListener(Class eventType, Object target) {
+ public void removeListener(Class<?> eventType, Object target) {
if (eventRouter != null) {
eventRouter.removeListener(eventType, target);
}
* the method owned by <code>target</code> that's registered to
* listen to events of type <code>eventType</code>.
*/
- public void removeListener(Class eventType, Object target, Method method) {
+ public void removeListener(Class<?> eventType, Object target, Method method) {
if (eventRouter != null) {
eventRouter.removeListener(eventType, target, method);
}
* the name of the method owned by <code>target</code> that's
* registered to listen to events of type <code>eventType</code>.
*/
- public void removeListener(Class eventType, Object target, String methodName) {
+ public void removeListener(Class<?> eventType, Object target,
+ String methodName) {
if (eventRouter != null) {
eventRouter.removeListener(eventType, target, methodName);
}