Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #603 from SnakeSVx/master
Fix for issue #585 - RESTEasy SpringBeanProcessor cannot support factory bean's factory method
- Loading branch information
Showing
7 changed files
with
123 additions
and
35 deletions.
There are no files selected for viewing
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
14 changes: 14 additions & 0 deletions
14
jaxrs/resteasy-spring/src/test/java/org/jboss/resteasy/spring/beanprocessor/MyBean.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.jboss.resteasy.spring.beanprocessor; | ||
|
||
/** | ||
* Created with IntelliJ IDEA. | ||
* User: sgv | ||
* Date: 23/10/14 | ||
* Time: 16:16 | ||
*/ | ||
public class MyBean { | ||
|
||
public MyInnerBean getMyInnerBean() { | ||
return new MyInnerBeanImpl(); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...teasy-spring/src/test/java/org/jboss/resteasy/spring/beanprocessor/MyBeanFactoryBean.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.jboss.resteasy.spring.beanprocessor; | ||
|
||
import org.springframework.beans.factory.FactoryBean; | ||
|
||
/** | ||
* Created with IntelliJ IDEA. | ||
* User: sgv | ||
* Date: 23/10/14 | ||
* Time: 16:15 | ||
*/ | ||
public class MyBeanFactoryBean implements FactoryBean<MyBean> { | ||
|
||
@Override | ||
public MyBean getObject() throws Exception { | ||
return new MyBean(); | ||
} | ||
|
||
@Override | ||
public Class<?> getObjectType() { | ||
return MyBean.class; | ||
} | ||
|
||
@Override | ||
public boolean isSingleton() { | ||
return true; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
jaxrs/resteasy-spring/src/test/java/org/jboss/resteasy/spring/beanprocessor/MyInnerBean.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.jboss.resteasy.spring.beanprocessor; | ||
|
||
/** | ||
* Created with IntelliJ IDEA. | ||
* User: sgv | ||
* Date: 24/10/14 | ||
* Time: 8:44 | ||
*/ | ||
public interface MyInnerBean { | ||
} |
10 changes: 10 additions & 0 deletions
10
...esteasy-spring/src/test/java/org/jboss/resteasy/spring/beanprocessor/MyInnerBeanImpl.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.jboss.resteasy.spring.beanprocessor; | ||
|
||
/** | ||
* Created with IntelliJ IDEA. | ||
* User: sgv | ||
* Date: 24/10/14 | ||
* Time: 8:45 | ||
*/ | ||
public class MyInnerBeanImpl implements MyInnerBean { | ||
} |
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
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