Open tangyong opened 11 years ago
John Wells wrote:
So the Decorator concept has been changed in the HK2 2.0 API, and so the Decorate annotation has been removed. Instead we have things called PopulatorPostProcessor which can be used in the HK2Populator methods. There is an outstanding feature enhancement request to add some standard PopulatorPostProcessors that will do things like read from META-INF/services or be configurable.
there is a class called "org.glassfish.virtualization.config.ServerPoolConfig" in iaas-mgmt/virt-api module and @Decorate annotates this class as following:
... @Decorate(targetType = Domain.class, methodName = "getExtensions", with = Create.class ) public interface ServerPoolConfig extends ConfigBeanProxy { ... }
Because current gf uses the newest HK2, in order to build iaas-mgmt/virt-api module, I must replace @Decorate with some new HK2 API or use hk2-deprecated-XXX.jar.