So I will give you the code to explain that, this is code I have shown before:
applicationContext.xml
<bean id="mixinbean" class="org.springframework.aop.framework.ProxyFactoryBean">
...
Type: Posts; User: kalfen; Keyword(s):
So I will give you the code to explain that, this is code I have shown before:
applicationContext.xml
<bean id="mixinbean" class="org.springframework.aop.framework.ProxyFactoryBean">
...
And I don't want to wrap the FactoryBean itself,I just use proxyfactorybean to generate proxy class instead.
:)
hehe,
I mean that in the first proxyfactorybean, I add interceptor on the person bean, so it will generate a proxy class at the runtme to wrap person bean.
And for the second proxyfactorybean I...
this is the test code:
<bean id="person"
class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces"><value>com.mycompany.Person</value></property>
...
suppose I have a bean called businessbean, and I have add some interceptor on it via ProxyFactorybean, so when I inject into another bean, I get a proxy class. So my question is how can I add the...
very thanks for your reply,
and how can I add interceptor on proxyfactorybean instead of the real bean.
as title[/code]
Thanks for the reply,and I am wonder if I can use a ProxyFactoryBean in the applicationContext.xml that reference to the autoproxyed mixin class?this ProxyFactoryBean has some interceptor on the...
any body can help me? it's so urgent problem.
and for example this is the my sample code from spring test suite
<bean id="introductionBeanNameProxyCreator"...
I have use BeanNameAutoProxyCreator to generate mixin proxy class, but how can I add interceptor to this class? Rod can you help me?
I found that in AbstractScript class, the following
is = context.getResourceLoader().getResource(location).getInputStream();
always return the same is object, I have set autorefresh to true,so it...
this is my code:
applicationContext.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">...
I have integrate groovy into spring use groovyscriptfactory, but after I change the groovy file content, I find that it didn't impact the result,
for example,I have a webcontroller which has a...
And then I test the hibernate code,I found that it do well with mysql, and didn't return any record in oracle :(.
I don't know where the error.
The code is following:
public static final String DEF_USERS_BY_USERNAME_QUERY =
"SELECT LOGINNAME,PASSWORD,ENABLED FROM APP_USER WHERE LOGINNAME = ? ";
List users =...
the following is the domain class:
import java.io.Serializable;
import java.util.Set;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;...
the following is the domain class:
import java.io.Serializable;
import java.util.Set;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;...
hibernate.hbm.xml
<class name="com.test.Aclrole" table="acl_role" discriminator-value="W">
<id name="roleid" type="int" >
<column name="roleid" not-null="true"/>
<generator class="native"/> ...