Created
April 22, 2013 08:17
-
-
Save tamtam180/5433221 to your computer and use it in GitHub Desktop.
Spring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyFactory { | |
public static Configuration newConfiguration() { | |
Configuration conf = new Configuration(); | |
conf.setInt("xxx", 111); | |
return conf; | |
} | |
} | |
// こーいう場合(Factoryクラスがstaticメソッドでかつ他のクラスの場合) XMLどう書けばいいの... | |
// factory-beanはbean指定だからインスタンス化必須? | |
// factory-methodは同じメソッドじゃないとダメだし.. | |
// 両方指定しても、 | |
// new MyFactory().newConfiguration() みたいな呼び出しになるし.. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment