Skip to end of metadata
Go to start of metadata

One issue is left open, how does DI know what properties the Adapter, the DataStore or the ImportByName is using? The answer is, via BeanInfo classes...

Each class (we do not have any properties for the SFAdapter class so we ommit that) that can have additional properties will get a second class called the same but with a trailing "BeanInfo" as its name. Inside, you define the PropertyDescriptor objects like

PropertyDescriptor metadataName = new PropertyDescriptor (
   "metadataName",
   com.acta.adapter.sf.SFImportByName.class ) ;

with the first attribute, here: "metadataName" pointing to the variable of the class given as second attribute:

public class SFImportByName implements ImportByName
{
    private String metadataName = null ;
    ...
    ...



  • No labels