com.servoy.j2db
Interface IServoyBeanFactory
- All Superinterfaces:
- ISupportName
public interface IServoyBeanFactory
- extends ISupportName
Interface to leave type creation to bean implementor, so that the implementor can deliver multiple instances like SWT/Swing/Wicket
getBeanInstance
IComponent getBeanInstance(int servoyApplicationType,
IClientPluginAccess access,
Object[] cargs)
- Factory method to create the actual component, the servoyApplicationType is one the
IClientPluginAccess client constants like
IClientPluginAccess.CLIENT for the smart client.
The first argument of the cargs parameter is always set and is the name that should be used as the wicket id for the wicket componet.
This argument is not needed for the swing component.
If the component that is returned implements IServoyAwareBean then the IServoyAwareBean.initialize(IClientPluginAccess) is not called on that one.
you have to do that yourself.
- Parameters:
servoyApplicationType - The client's application type.access - The IClientPluginAccesscargs - Argumetns for this bean, the first argument is the wicket:id
- Returns:
- The actual bean component