Esempio n. 1
0
  /** @see org.mule.extras.seasar2.connector.ConnectorConfig#getConnector() */
  public Connector buildConnector() {
    org.mule.transport.file.FileConnector connector = new org.mule.transport.file.FileConnector();
    setName(ObjectNameHelper.getConnectorName(connector));
    BeanUtil.copyProperties(this, connector);

    return connector;
  }
 protected Validator getSingleValidator(ValidatorPair pair) {
   Map properties = pair.properties;
   if (HotdeployUtil.isHotdeploy()) {
     properties = EnumUtil.convertNameToEnum(properties);
   }
   final Validator validator = (Validator) container.getComponent(pair.validatorName);
   BeanUtil.copyProperties(properties, validator);
   return validator;
 }