Interested readers can find such an implementation in the JAXB reference implementation in Resources.
有兴趣的读者可以从参考资料中的JAXB参考实现中找到这样的实现。
We need to get a service reference, which allows us to introspect properties of the service itself, and then use that to get the service that we're interested in.
我们需要获得一个服务引用,它可以让我们查看服务自身内部的属性,然后利用其来获得我们感兴趣的服务。
The getSource() method on the context should return a reference to a UML class, since we specified in the extension point that we were interested only in Class transforms.
环境中的 getSource() 方法应该返回对 UML 类的引用,因为我们在扩展点中指定我们只对 Class transforms 感兴趣。
应用推荐