Search in sources :

Example 1 with ObjectFactory

use of org.talend.esb.servicelocator.client.internal.endpoint.ObjectFactory in project tesb-rt-se by Talend.

the class SLPropertiesConverter method toServiceLocatorPropertiesType.

public static ServiceLocatorPropertiesType toServiceLocatorPropertiesType(SLProperties props) {
    ObjectFactory of = new ObjectFactory();
    ServiceLocatorPropertiesType slPropertiesType = of.createServiceLocatorPropertiesType();
    List<EntryType> entries = slPropertiesType.getEntry();
    for (String name : props.getPropertyNames()) {
        entries.add(createEntry(props, name));
    }
    return slPropertiesType;
}
Also used : EntryType(org.talend.esb.servicelocator.client.internal.endpoint.EntryType) ObjectFactory(org.talend.esb.servicelocator.client.internal.endpoint.ObjectFactory) ServiceLocatorPropertiesType(org.talend.esb.servicelocator.client.internal.endpoint.ServiceLocatorPropertiesType)

Aggregations

EntryType (org.talend.esb.servicelocator.client.internal.endpoint.EntryType)1 ObjectFactory (org.talend.esb.servicelocator.client.internal.endpoint.ObjectFactory)1 ServiceLocatorPropertiesType (org.talend.esb.servicelocator.client.internal.endpoint.ServiceLocatorPropertiesType)1