我曾在一个聊天程序中看到过另一个受惑于对象生命周期的例子。
I saw another example of confusion over object life cycle in a chat program.
引用队列是垃圾收集器向应用程序返回关于对象生命周期的信息的主要方法。
Reference queues are the garbage collector's primary means of feeding back information to the application about object lifecycle.
增加易用性的另一项技术是,创建反映业务对象生命周期的状态的服务接口。
A further technique for increasing consumability is to create service interfaces reflecting the states of the business object lifecycle.
还有一些其他的情况可以类似地忽略或破坏对象生命周期管理,并导致内存泄漏。
There are other idioms that can similarly ignore or subvert object lifecycle management and can also lead to memory leaks.
换句话说,通过将重点放在对象生命周期上,我们就可以建立具有恰当粒度的服务。
In other words, by focusing on the Object life-cycle we have established services with appropriate granularity.
在这种情况下,架构师和设计师必须编排整个对象生命周期,不考虑编程语言的能力。
In this case, the architect and the designer have to orchestrate the entire object lifecycle, regardless of the programming language capabilities.
最终,对象生命周期的概念似乎作为数据、服务和业务流程的统一概念浮现出来。
Ultimately, the concept of Object Lifecycle seems to emerge as a unifying concept for Data, Service and Business Processes.
在大多数时候,好的软件工程技术保证这是自动实现的,不用我们对对象生命周期问题花费过多心思。
Most of the time, good software engineering techniques ensure that this happens automatically, without us having to expend a lot of attention on the issue of object lifetime.
我不确定其他容器是否能够做到,但是Spring和Spring.NET都能够提供钩子(hooks),使得开发者能够在一个对象生命周期的不同状态中执行定制的逻辑,非常的行之有效。
I'm not sure about other containers, but Spring and Spring.NET also offer hooks that allow you to execute custom logic in different states of an object's lifecycle, which is very useful at times.
我不确定其他容器是否能够做到,但是Spring和Spring.NET都能够提供钩子(hooks),使得开发者能够在一个对象生命周期的不同状态中执行定制的逻辑,非常的行之有效。
I'm not sure about other containers, but Spring and Spring.NET also offer hooks that allow you to execute custom logic in different states of an object's lifecycle, which is very useful at times.
应用推荐