wakakaka, gw gak kepikiran cara ini. boleh juga tuh, aspectnya ditaro di getter :D
On Mon, Aug 4, 2008 at 8:57 AM, Aldian Fajri Hadi <[EMAIL PROTECTED]> wrote: > @AroundInvoke > public Object injectTheInterfaceImpl (InvocationContext > invocationContext) throws Exception { > TheDependencyReceiver dependencyReceiver = (TheDependencyReceiver) > invocationContext.getTarget(); > if (dependencyReceiver.getTheObjectToBeInjected() == null) { > dependencyReceiver.setTheObjectToBeInjected(new > TheInterfaceImpl()); > } > return invocationContext.proceed(); > } sekarang gimana kalo gw pengen membatasi masa hidup si TheInterfaceImpl? say, gw pengen ubah2 dia punya scope, dari "application scope" (seperti contoh di atas) ke conversation scope? di spring gw tinggal ganti 1 kata. disini gmn? -- salam hangat, Thomas Wiradikusuma Follow me in Twitter! http://www.twitter.com/wiradikusuma http://wiradikusuma.blogspot.com/2008/07/malikat-pencabut-nyawanya-thomas.html