src/main/java/org/edgegallery/appstore/domain/model/appd/AppdFileHandlerFactory.java
public static IAppdFile createFileHandler(int fileType) {
        switch (fileType) {
            case TOSCA_META_FILE:
                return new ToscaFileHandler(ToscaMetadataContent.class, ToscaSourceContent.class);
            case MF_FILE:
                return new ToscaFileHandler(ManifestMetadataContent.class, ManifestFiledataContent.class,
                    ManifestCmsContent.class);
            default:
                return null;
        }
    }
/**
     * create handler by file type.
     *
     * @param fileType TOSCA_META_FILE or MF_FILE
     * @return ToscaFileHandler
     */
create handler by file type.
create handler by file type .
public static IAppdFile createFileHandler(int fileType) {
        switch (fileType) {
            case TOSCA_META_FILE:
                return new ToscaFileHandler(ToscaMetadataContent.class, ToscaSourceContent.class);
            case MF_FILE:
                return new ToscaFileHandler(ManifestMetadataContent.class, ManifestFiledataContent.class,
                    ManifestCmsContent.class);
            default:
                return null;
        }
    }
public static IAppdFile createFileHandler ( int fileType ) { switch ( fileType ) { case TOSCA_META_FILE : return new ToscaFileHandler ( ToscaMetadataContent . class , ToscaSourceContent . class ) ; case MF_FILE : return new ToscaFileHandler ( ManifestMetadataContent . class , ManifestFiledataContent . class , ManifestCmsContent . class ) ; default : return null ; } }
create handler by file type.
create handler by file type .