这可以通过使用反射API或潜在访问XAML架构上下文来完成。
This could be done using reflection APIs, or potentially by accessing the XAML schema context.
通过使用反射机制,那些能够引用您的对象的、高度受信任的代码,可以获取和设置私有成员。
Using reflection mechanisms, highly trusted code that can reference your object can get and set private members.
在这里,HolderBean类包含一对属性,通过使用反射来调用get和set方法,可以在运行时访问这一对属性。
Here the HolderBean class contains a pair of properties that can be accessed at run time by using reflection to call the get and set methods.
在他们的情况中,通过直接处理类文件,同时向编译器所生成的类添加代码以便为框架提供直接访问,来避免使用反射。
In their case, they avoided using reflection by instead working directly with class files, adding code to the classes generated by the compiler in order to provide direct access for the framework.
这里的基本方法是,在运行时,以一种可以被一般性代码使用的方式,构建一个自定义的类,其中将包装对目标类的访问(以前是通过反射达到的)。
The basic approach here is to construct a custom class at runtime that will wrap access to the target classes (previously reached by reflection) in a way that can be used by your general-purpose code.
第一个测试使用帮助器通过反射检验BannerStyle上的所有关联,如清单2 所示。
The first test uses a helper to exercise all of the associations on BannerStyle through reflection, as in Listing 2.
本文将通过POJO编程构建一个简单的SOA框架,它使用反射和Geronimo 的GBean依赖性注入来让组件去耦。
This article proposes a simple SOA framework through POJO programming that uses reflection and Geronimo's GBean dependency injection to enable component decoupling.
在循环内部,我们为遍历到的键提取值,然后使用在PBHandler中定义的helper函数通过反射将该值放置到bean中。
Within the loop, we extract the value for the iterated key, and then we attempt to set that value into the bean through reflection, using the helper function defined in the PBHandler class.
最终得到一种数据结构,反射了通过使用泛型可推导出的所有信息。
The end result is a data structure that reflects all the information you can deduce through the use of generics.
我们将学习通过克隆图章工具的使用如何创建一个在金属表面反射和更喜欢的图像对比度软化,但仍然留下了很多尖锐的边缘。
We would learn how to create a reflection on a metal surface through the use of the Clone Stamp tool and a lot more like softening the images contrast but still leaving the edges sharp.
Rails应用程序并不使用配置文件,而是使用几条简单的编程约定,从而允许通过反射和发现来查明所有配置。
Instead of configuration files, a Rails application USES a few simple programming conventions that allow it to figure out everything through reflection and discovery.
然而Mirasol,Qualcomm的一种方法,仅仅使用MEMs控制一个像素的打开与关闭(通过反射一种波长或不反射)。
However Mirasol, as Qualcomm's method is known, merely USES MEMs to turn a pixel on or off (by reflecting either one wavelength of light, or none at all).
静态分析,这是你能做的最好的。请注意,你将错过依赖使用通过反射,但是并没有多少你可以做。
For static analysis, that's the best you can do. Note that you will miss dependencies used through reflection, but there's not much you can do about that.
如果您正在使用的框架因为某些原因需要使用这样的构造函数的话,那么您可以了解以下能否通过提供一个私有的无参数构造函数(这是经由反射可见的)来满足这一要求。
If you're using a framework that requires this for some reason, see if you can satisfy it by providing a private no-argument constructor (which is visible via reflection).
但是,而不是取代发光二极管灯泡,设计师试图'传播通过尾灯组的设计和反射面使用轻'。
But rather than just replacing bulbs with LEDs, the designers attempted to 'spread the light' through the design of the taillight unit and the use of reflective surfaces.
设计体现了通过使用光反射和精简材料,这让整体建筑看上去像孩子一样俏皮。
The design of the station reflects the playful identity through its use of light and incorporation of reflective and streamlined materials.
请注意,你将错过依赖使用通过反射,但是并没有多少你可以做。
Note that you will miss dependencies used through reflection, but there's not much you can do about that.
假设我们需要做一个可以通过反射使用的内部模块。
So let's say we are in a position where we need to make a module's internals available via reflection.
通过使用少量的电力来进行开关,帆边沿的液态透明电池板能够改变光表面反射。
Liquid crystal panels on the edges of the sail can change their surface reflection of sunlight by using low amounts of electricity to turn on or off.
通过使用XML作为数据的载体,运用XSLT样式表对XML进行转换,并使用反射机制调用EJB中的业务逻辑以使得数据交换节点之间方便地通信。
To communicate conveniently between data exchange nodes, we use XML as the carrier of data, apply XSLT to transform the XML, and make use of reflection mechanism to invoke the business of EJB.
一种广泛使用的构型为Kretschmann构型,激光通过玻璃棱镜聚焦到金属膜上,然后检测反射的激光(图a)。
A widely used one is the Kretschmann configuration, in which light is focused onto the metal film through a glass prism and the reflection of the light is detected FIG.
通过引入烧结莫来石颗粒料,浇注成型生产的莫来石质反射炉炉门砖,使用寿命明显高于进口砖。
The casted door brick for reverberatory furnace which introduced mullite grains has an obvious longer service life than the imported brick .
通过对量块表面的测量,验证了使用非接触方法测量金属强反射表面的可行性。
Through measuring surfaces of gauge blocks, this system is viable to measure high-reflective metallic surface.
反射图像成为关键因素,通过在壁龛中和家具表面上使用镜子,将真实与虚拟的透视效果结合在一起。
Reflection images becomes a key factor with the integration of real and virtual perspectives through the use of mirrors in niches and on furniture faces.
本发明通过使用具有光时域反射波长选择模块的光纤故障定位设备,具有了降低光纤故障定位系统投入成本的效果。
The device comprises the following parts: a control module, a modulating module, a sending module and a fiber fault position module. The invention reduces the cost of the fiber fault position system.
本发明通过使用具有光时域反射波长选择模块的光纤故障定位设备,具有了降低光纤故障定位系统投入成本的效果。
The device comprises the following parts: a control module, a modulating module, a sending module and a fiber fault position module. The invention reduces the cost of the fiber fault position system.
应用推荐