Search in sources :

Example 1 with InjectionInfo

use of org.apache.openejb.assembler.classic.InjectionInfo 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

ArrayList (java.util.ArrayList)1 InjectionInfo (org.apache.openejb.assembler.classic.InjectionInfo)1 InjectionTarget (org.apache.openejb.jee.InjectionTarget)1