io.agrest.sencha.runtime.encoder.SenchaEncoderService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agrest-sencha Show documentation
Show all versions of agrest-sencha Show documentation
Sencha/ExtJS Integration for Agrest
package io.agrest.sencha.runtime.encoder;
import io.agrest.encoder.PropertyMetadataEncoder;
import io.agrest.runtime.encoder.DataEncoderFactory;
import io.agrest.runtime.encoder.EncoderService;
import io.agrest.runtime.encoder.IEncodablePropertyFactory;
import io.agrest.runtime.encoder.IStringConverterFactory;
import io.agrest.runtime.semantics.IRelationshipMapper;
import org.apache.cayenne.di.Inject;
import java.util.Map;
/**
* @since 1.5
*/
public class SenchaEncoderService extends EncoderService {
public SenchaEncoderService(
@Inject IEncodablePropertyFactory attributeEncoderFactory,
@Inject IStringConverterFactory stringConverterFactory,
@Inject IRelationshipMapper relationshipMapper,
@Inject Map propertyMetadataEncoders) {
super(attributeEncoderFactory, stringConverterFactory, relationshipMapper, propertyMetadataEncoders);
}
@Override
protected DataEncoderFactory dataEncoderFactory() {
return new SenchaDataEncoderFactory(
attributeEncoderFactory,
stringConverterFactory,
relationshipMapper);
}
}