惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
Spread Privacy
Spread Privacy
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
SecWiki News
SecWiki News
腾讯CDC
P
Privacy International News Feed
Webroot Blog
Webroot Blog
J
Java Code Geeks
爱范儿
爱范儿
A
About on SuperTechFans
S
Secure Thoughts
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
D
DataBreaches.Net
Cloudbric
Cloudbric
Security Archives - TechRepublic
Security Archives - TechRepublic
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Cyber Attacks, Cyber Crime and Cyber Security
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Security Latest
Security Latest
Forbes - Security
Forbes - Security
小众软件
小众软件
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cybersecurity and Infrastructure Security Agency CISA
T
Threatpost
量子位
MongoDB | Blog
MongoDB | Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
W
WeLiveSecurity
P
Privacy & Cybersecurity Law Blog
Vercel News
Vercel News
Google Online Security Blog
Google Online Security Blog
云风的 BLOG
云风的 BLOG
GbyAI
GbyAI
S
Security @ Cisco Blogs
T
The Exploit Database - CXSecurity.com
Help Net Security
Help Net Security
V
Visual Studio Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 聂微东
P
Proofpoint News Feed
C
CERT Recently Published Vulnerability Notes
Attack and Defense Labs
Attack and Defense Labs

博客园 - Mack.Z

压缩ASP.NET中的ViewState的改进方法 - Mack.Z - 博客园 压缩ASP.NET中的ViewState MSPlus.TabControl V1.1 版本发布 发布MSPlus TabControl WebControl V1.0.0710 版本 Html Convert Image (Html2Image) Gaia(MasterPage)我的第一个开源控件 MSN Winks 文件的解密 发布MSPlus DatePicker WebControl V2.0.1201 版本 发布MSPlus ToolBar&Menu WebControl V1.1.0910 版本 MSPlus DatePicker WebControl FreeVersion 1.1.0906 发布啦! 关于MSPlus控件下载后用VS.NET打开提示目录不对的解决方法 - Mack.Z - 博客园 MSPlus ToolBar&Menu WebControl FreeVersion 1.1.0830 发布拉 - Mack.Z [原创]复合控件中如何将客户端的处理结果通知服务器端的解决办法 [原创]屏蔽.NET自定义开发组件中的属性 MSPlus DataList Control(大数据量时的分页演示) MSPlus DataList Control 1.1.0818(个人版) 发布! MSPLUS-DropDownList Control [DEMO Download] 想开发.Net Server Controls 的初学者必读资料 MSPlus-ToolBar Control - Mack.Z - 博客园
学习SPRING中的一个疑惑.请教一下各位
Mack.Z · 2005-03-05 · via 博客园 - Mack.Z

<?xml version="1.0" encoding="utf-8" ?>
<objects>
    <description>An  example that demonstrates simple IoC features.</description>
    <object name="MyMovieLister" type="Spring.Examples.MovieFinder.MovieLister, MovieFinder">
        <property name="movieFinder">
            <ref local="AnotherMovieFinder" />
        </property>
    </object>
    <object name="MyMovieFinder" type="Spring.Examples.MovieFinder.SimpleMovieFinder, MovieFinder"></object>
    <!--
    An IMovieFinder implementation that uses a text file as it's movie source...
    -->
    <object name="AnotherMovieFinder" type="Spring.Examples.MovieFinder.ColonDelimitedMovieFinder, MovieFinder">
        <constructor-arg index="0">
            <value>movies.txt</value>
        </constructor-arg>
    </object>
</objects>

这是Spring Quick中的程序.这里的Object AnotherMovieFinder定义一个构造函数.并将这个值设为movies.txt
我的疑惑是.如果我需要在程序中把movies.txt改在test.txt的话.怎么实现呢?

下面还有一个类似的问题.前面是构造函数.以下是一个属性.同样我需要在程序中去修改Message
 <object id="TheAction" type="MSPlus.ClassLibrary.UpperAction, MSPlus.ClassLibrary">
  <property name="Message">
   <value>MYFirst</value>
  </property>
 </object>
并且我这里默认是Singleton模式.如果在程序中去修改Message的值后.再次从ObjectFactoy中获取对象时这个Message是显示的是Xml中默认定义的MYFirst值呢还是我在程序中修改后的新值?(我试了一下他还是会显示Xml中定义的值,但如何在Singleton模式下在以后获取这个对像时显示修改后的Message值的?)

请大家请教一下...