I'm only guessing : maybe cglib can't proxy protected methods, because they are protected?
Try this :)
public String getComputedValue() {
return getComputedValue2();
}
Type: Posts; User: moo; Keyword(s):
I'm only guessing : maybe cglib can't proxy protected methods, because they are protected?
Try this :)
public String getComputedValue() {
return getComputedValue2();
}
Because of the quote I still hope AOP can help. Thanks for now, i see this problem is not of general interest. If I found a solution I will post it.
Mo
You are correct . That's what I meant, sorry.
There is no way in Java to dynamically change a cast at runtime. Unless you use code generation or pure reflection you will *always* have to cast...
Now this is quite difficult to understand!
Let's start with the first sentence
Ok, the situation is, I'm loading a class via Class.forName() from whom I know that it implements one or more...
No I don't want to avoid casts. I do want to understand how AOP can help to build the "extension object" pattern and do the technical concerns for me. Maybe you are correct and this misuses AOP. But...
Thank you for posting the links, they are very helpfull!
It could, if your world remains static every single day 7/7 * 53 :)
but problem is the highlighted word "registered". So we are...
String clazz = "com.moo.foo.bar"
AdapterA adaptA = SomeFactory.newInstance(AdapterA.class, clazz);
AdapterB adaptB = SomeFactory.newInstance(AdapterB.class, clazz);
Now consider the above...
Currently I'm doing some basic reading about the "extension object" pattern.
This pattern involves a lot of technical stuff like castings from A to B, asking for extensions....
Proposal:...
currently I'm doing some XML bindung stuff with jakarta commons digester. If you haven't heard of it maybe you know XStream. The point is "digesting" my XML bindings consumes a lot of small prototype...
basic reading while waiting for your train: Design Patterns Explained: A New Perspective on Object-Oriented Design
by Alan Shalloway, James Trott
explains some nice ideas but verbose.
Software...
this is slowly getting OT I think... anyway
1a. study Template Pattern (gof)
1b. let DI inject the template class
1c. Template class could be AbstractUserService
1d. AbstractUserService controls...
I didn't know that Acegi Security implements UNIX style ACL, sorry about that.
.... i don't know sun's bean specification by heart but i can't remember it saying explicitly that using static bean access is forbidden....
public class Person {
private static String id;...
ok, i'll try to :)
i see two difficulties... the one you already described and the other related to objects created by your users.
1. leave everything in one class (bean :) ) but use...
maybe someone asked that before... I could'nt find any restrictions relating to the usage of static setter/getters. are they allowed in spring?
Mo
i'm still interested in having spring managed plugins
maybe this sounds interesting
http://genpluginengine.sourceforge.net/manual/features.html
yep now it does... I had problems with my code but because of other things! thanks.
I'm reading section
http://www.springframework.org/docs/reference/aop.html#d0e3285
that gives an example on how to configure ProxyFactoryBean
<bean id="person"
...
thanks, but there is no AfterThrowingAdvice only AfterReturningAdvice...
Mo
Great! I think that Spring + managed beans/plugins + jmx + jms will be a big step for the J2EE developer community
and much more than only an alternative to fullblown appservers.
I think plugin...
Hello I'm totally new to Spring and I'm still trying to figure out what spring can actually do for me.
So I started reading "J2EE Develepment without EJB".
One of the best books on software...