diff options
author | vamsic007 <vamsic007@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-29 10:49:10 +0000 |
---|---|---|
committer | vamsic007 <vamsic007@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-29 10:49:10 +0000 |
commit | ae8df2107457670d0404931b8fa7fdf55535aa30 (patch) | |
tree | 8479bf2f1d5a1e29a559ed00f743dc2f412dfddd /branches/sca-java-1.x/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEIntrospectorImpl.java | |
parent | 4a473240fcfdecb8f7e0a03c3e252d87f1917632 (diff) |
Injection info for SCA references from Java EE optional extension
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@830888 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | branches/sca-java-1.x/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEIntrospectorImpl.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEIntrospectorImpl.java b/branches/sca-java-1.x/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEIntrospectorImpl.java index 89a09c84c5..c0830cbb2c 100644 --- a/branches/sca-java-1.x/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEIntrospectorImpl.java +++ b/branches/sca-java-1.x/modules/contribution-jee-impl/src/main/java/org/apache/tuscany/sca/contribution/jee/impl/JavaEEIntrospectorImpl.java @@ -38,6 +38,7 @@ import org.apache.openejb.jee.EjbReference; import org.apache.openejb.jee.EnterpriseBean; import org.apache.openejb.jee.EnvEntry; import org.apache.openejb.jee.Filter; +import org.apache.openejb.jee.InjectionTarget; import org.apache.openejb.jee.Listener; import org.apache.openejb.jee.MessageDrivenBean; import org.apache.openejb.jee.Servlet; @@ -187,6 +188,11 @@ public class JavaEEIntrospectorImpl implements JavaEEIntrospector { ejbReferenceInfo.ejbLink = ejbRef.getEjbLink(); ejbReferenceInfo.mappedName = ejbRef.getMappedName(); + if(ejbRef.getInjectionTarget().size() > 0) { + InjectionTarget it = ejbRef.getInjectionTarget().iterator().next(); + ejbReferenceInfo.injectionTarget.targetClass = it.getInjectionTargetClass(); + ejbReferenceInfo.injectionTarget.targetName = it.getInjectionTargetName(); + } return ejbReferenceInfo; } |