综合开发

Short Article Solving Problem AndroidStudio Update ADB (Android Debug Bridge)

微信扫一扫,分享到朋友圈

Short Article Solving Problem AndroidStudio Update ADB (Android Debug Bridge)

Creating Spring Bean dynamically in the Runtime



June 18, 2013

In my training someone asked me whether it is possible to create an object (a Spring Bean) dynamically so you can choose which implementation you want to have  in the runtime
. So at the compile time
you don’t know what object actually should be created yet. The application should decide what object to be created based on a property file
.

1. We create an annotation
so we can mark the method which should be able to create the object dynamically:

package your.package;

@Retention(RetentionPolicy.RUNTIME)

public @interface InjectDynamicObject
{

}

2. Use the new created annotation
in your method which should be able to create the object dynamically:

… @Named(“customerBo”) public class CustomerBoImpl implements CustomerBo { …     @Override @InjectDynamicObject
public Customer getDynamicCustomer() {         return this.dynamicCustomer; } …

3. Write an aspect with Pointcut and Advise
which change the object returned by the method in the step 2:

… @Named @Aspect public class Dyn…


  • Get link

  • Facebook

  • Twitter

  • Pinterest

  • Email

  • Other Apps


4 comments

Read more

Software Development Macro and Micro Process



April 25, 2013

If you think that in year 2012 all companies which produce software and IT divisions in our world have already their optimized software development process, you are wrong. It seems that we – software architects, software developers or whatever your title is – still need to optimize the software development process in many software companies and IT divisions.

So what do you do if you enter a software company or IT division and you see following things:

1. There is a perfect project management process to handle all those development of software butit is a pure project management without a context to software development. So basically you only take care of cost, time, budget and quality factors. In the software development you still use the old fashioned waterfall process.

2. From the tooling point of view: you have a project management planning and controlling tool but you are still in the beginning of Wiki (almost no collaboration tool) andyou don’t use issues tracking system to han…


  • Get link

  • Facebook

  • Twitter

  • Pinterest

  • Email

  • Other Apps


14 comments

Read more

Why “Polyglot Programming” or “Do It Yourself Programming Languages” or “Language Oriented Programming” sucks?



October 13, 2011

Last year we saw the launch of a new Web programming language Dart – Structured Web Programming from Google. A very interesting approach to support web application development. Not so long after Go, Groovy, Ruby, Scala, << name your DSL here >>
;
we see Dart. Is it a good thing to have at least one programming language to solve one problem? The answer is, like we already know, it depends.

Some important backgrounds you should know about the multi programming language paradigm are following:

1. You can read Martin Fowler article about language oriented programming with language workbenches which enables you to write small programming languages easily. In this article I see everyone writing their small languages, everywhere. In this concept we see DSL (Domain Specific Language) as the future of our programming activities. Source: http://martinfowler.com/articles/languageWorkbench.html

2. Neal Ford talked about Polyglot Programming, combining multiple programming languages in appl…


  • Get link

  • Facebook

  • Twitter

  • Pinterest

  • Email

  • Other Apps


28 comments

Read more

同步类的基础AbstractQueuedSynchronizer(AQS)

上一篇

python数据分析之数据探索

下一篇

你也可能喜欢

评论已经被关闭。

插入图片
Lofi model @ work 投稿者
我还没有学会写个人说明!
最近文章
  • 1 Introduction Article GWT J2CL Java2JavaScript Transpiler
  • 热门栏目

    Short Article Solving Problem AndroidStudio Update ADB (Android Debug Bridge)

    长按储存图像,分享给朋友