/**
  * Public constructor.
  *
  * @param domain ServiceDomain instance.
  */
 public TransformerRegistryLoader(ServiceDomain domain) {
   if (domain == null) {
     throw TransformMessages.MESSAGES.nullServiceDomainArgument();
   }
   this._serviceDomain = domain;
   if (_serviceDomain.getTransformerRegistry() == null) {
     throw TransformMessages.MESSAGES.nullTransformerRegistryArgument();
   }
   this._transformerRegistry = _serviceDomain.getTransformerRegistry();
 }
Exemplo n.º 2
0
 @Override
 public Processor create(ServiceDomain domain) {
   return wrap(new TransformHandler(domain.getTransformerRegistry()));
 }