/**
* factory method for new ProxyPullSuppliers.
*/
AbstractProxySupplier newProxyPullSupplier(ClientType clientType)
{
final MutablePicoContainer _containerForProxy = newContainerForNotifyStyleProxy();
final Class _proxyClass;
switch (clientType.value()) {
case ClientType._ANY_EVENT:
_proxyClass = ProxyPullSupplierImpl.class;
break;
case ClientType._STRUCTURED_EVENT:
_proxyClass = StructuredProxyPullSupplierImpl.class;
break;
case ClientType._SEQUENCE_EVENT:
_proxyClass = SequenceProxyPullSupplierImpl.class;
break;
default:
throw new BAD_PARAM();
}
_containerForProxy
.registerComponentImplementation(AbstractProxySupplier.class, _proxyClass);
final AbstractProxySupplier _servant = (AbstractProxySupplier) _containerForProxy
.getComponentInstanceOfType(AbstractProxySupplier.class);
return _servant;
}