com.alogic.s3.S3Plugin Maven / Gradle / Ivy
package com.alogic.s3;
import com.alogic.xscript.AbstractLogiclet;
import com.alogic.xscript.ExecuteWatcher;
import com.alogic.xscript.Logiclet;
import com.alogic.xscript.LogicletContext;
import com.alogic.xscript.doc.XsObject;
import com.anysoft.util.Properties;
/**
* Plugin
*
* @since 1.6.16.6
*
* @version 1.6.16.8
* - 增加s3-exist插件
*/
public class S3Plugin extends AbstractLogiclet {
public S3Plugin(String tag, Logiclet p) {
super(tag, p);
}
@Override
public void configure(Properties p) {
super.configure(p);
registerStaticModule("s3-client",S3Client.class);
registerStaticModule("s3-bucket",S3Bucket.class);
registerStaticModule("s3-bucket-exist", S3BucketExist.class);
registerStaticModule("s3-bucket-list", S3BucketList.class);
registerStaticModule("s3-bucket-make", S3BucketMake.class);
registerStaticModule("s3-bucket-remove", S3BucketRemove.class);
registerStaticModule("s3-exist",S3Exist.class);
registerStaticModule("s3-list", S3List.class);
registerStaticModule("s3-load",S3Load.class);
registerStaticModule("s3-save",S3Save.class);
registerStaticModule("s3-upload",S3Upload.class);
registerStaticModule("s3-download",S3Download.class);
registerStaticModule("s3-remove",S3Remove.class);
registerStaticModule("s3-info-get", S3InfoGet.class);
registerStaticModule("s3-metadata-get",S3Metadata.GetUserData.class);
registerStaticModule("s3-metadata-getall",S3Metadata.GetUserData.class);
registerStaticModule("s3-metadata-set",S3Metadata.SetUserData.class);
}
@Override
protected void onExecute(XsObject root, XsObject current, LogicletContext ctx, ExecuteWatcher watcher) {
}
}