
|
If you were logged in you would be able to see more operations.
|
|
|
|
When defining beans inheriting the following interface:
public interface ServiceRegistry<T> {
void register(T service, Map<String, ?> properties);
void unregister(T service, Map<String, ?> properties);
}
All service registrations makes the register method to be called twice.
It seems that the introspection on the class returns two methods, one with typed with Object, and another one typed with the actually class for T.
It seems the caller loops for all methods and call all of them. The documentation is not very clear about that, but I would think that only a single method for the given name would be called, and not all the versions of it.
|
|
Description
|
When defining beans inheriting the following interface:
public interface ServiceRegistry<T> {
void register(T service, Map<String, ?> properties);
void unregister(T service, Map<String, ?> properties);
}
All service registrations makes the register method to be called twice.
It seems that the introspection on the class returns two methods, one with typed with Object, and another one typed with the actually class for T.
It seems the caller loops for all methods and call all of them. The documentation is not very clear about that, but I would think that only a single method for the given name would be called, and not all the versions of it.
|
Show » |
|
onBind(Object object)
onBind(SomeObject object)
onBind(Object) will be called one if an Object is bound but both onBind(Object) and onBind(SomeObject) will be called if SomeObject is used since both Object and SomeObject are compatible.