Search in sources :

Example 26 with InjectionTarget$JAXB.readInjectionTarget

use of org.apache.openejb.jee.InjectionTarget$JAXB.readInjectionTarget in project tomee by apache.

the class JndiEncInfoBuilder method buildInjectionInfos.

private Collection<? extends InjectionInfo> buildInjectionInfos(final Injectable injectable) {
    final List<InjectionInfo> infos = new ArrayList<InjectionInfo>();
    for (final InjectionTarget target : injectable.getInjectionTarget()) {
        final InjectionInfo info = new InjectionInfo();
        info.className = target.getInjectionTargetClass();
        info.propertyName = target.getInjectionTargetName();
        infos.add(info);
    }
    return infos;
}
Also used : InjectionInfo(org.apache.openejb.assembler.classic.InjectionInfo) ArrayList(java.util.ArrayList) InjectionTarget(org.apache.openejb.jee.InjectionTarget)

Aggregations

CollapsedStringAdapter (javax.xml.bind.annotation.adapters.CollapsedStringAdapter)18 InjectionTarget$JAXB.readInjectionTarget (org.apache.openejb.jee.InjectionTarget$JAXB.readInjectionTarget)18 InjectionTarget$JAXB.writeInjectionTarget (org.apache.openejb.jee.InjectionTarget$JAXB.writeInjectionTarget)18 Text$JAXB.readText (org.apache.openejb.jee.Text$JAXB.readText)18 Text$JAXB.writeText (org.apache.openejb.jee.Text$JAXB.writeText)18 RuntimeContext (org.metatype.sxc.jaxb.RuntimeContext)18 QName (javax.xml.namespace.QName)10 Attribute (org.metatype.sxc.util.Attribute)9 XoXMLStreamReader (org.metatype.sxc.util.XoXMLStreamReader)9 InjectionTarget (org.apache.openejb.jee.InjectionTarget)8 LinkedHashSet (java.util.LinkedHashSet)5 ArrayList (java.util.ArrayList)4 EjbRefType$JAXB.parseEjbRefType (org.apache.openejb.jee.EjbRefType$JAXB.parseEjbRefType)4 EjbRefType$JAXB.toStringEjbRefType (org.apache.openejb.jee.EjbRefType$JAXB.toStringEjbRefType)4 EjbJar (org.apache.openejb.jee.EjbJar)3 EnvEntry (org.apache.openejb.jee.EnvEntry)3 Assembler (org.apache.openejb.assembler.classic.Assembler)2 ProxyFactoryInfo (org.apache.openejb.assembler.classic.ProxyFactoryInfo)2 SecurityServiceInfo (org.apache.openejb.assembler.classic.SecurityServiceInfo)2 StatelessSessionContainerInfo (org.apache.openejb.assembler.classic.StatelessSessionContainerInfo)2