private Object returnDefaultHelper(Annotation annotation, PipelineOptions proxy, Method method) { if (annotation instanceof Default.Class) { return ((Default.Class) annotation).value(); } else if (annotation instanceof Default.String) { return ((Default.String) annotation).value();
for (Annotation annotation : method.getAnnotations()) { if (annotation instanceof Default.Class) { return Optional.of(((Default.Class) annotation).value().getSimpleName()); } else if (annotation instanceof Default.String) { return Optional.of(((Default.String) annotation).value());
@Description("The class that determines the strategy for calculating the similarity of alleles.") @Default.Class(SharedMinorAllelesCalculatorFactory.class) Class<? extends CallSimilarityCalculatorFactory> getCallSimilarityCalculatorFactory();
@Default.Class(DefaultAnnotations.class) Class<?> getClassOption();
@Description("The class that determines the strategy for calculating the similarity of alleles.") @Default.Class(SharedMinorAllelesCalculatorFactory.class) Class<? extends CallSimilarityCalculatorFactory> getCallSimilarityCalculatorFactory();
@Description("The class that determines the strategy for merging non-variant segments and variants.") @Default.Class(MergeNonVariantSegmentsWithSnps.class) Class<? extends VariantMergeStrategy> getVariantMergeStrategy(); void setVariantMergeStrategy(Class<? extends VariantMergeStrategy> mergeStrategy);
@Description("The class that determines the strategy for merging non-variant segments and variants.") @Default.Class(MergeNonVariantSegmentsWithSnps.class) Class<? extends VariantMergeStrategy> getVariantMergeStrategy(); void setVariantMergeStrategy(Class<? extends VariantMergeStrategy> mergeStrategy);
@Description( "Factory class that should be created and used to create a builder of AmazonS3 client." + "Override the default value if you need a S3 client with custom properties, like path style access, etc.") @Default.Class(DefaultS3ClientBuilderFactory.class) Class<? extends S3ClientBuilderFactory> getS3ClientFactoryClass();
/** * The class responsible for staging resources to be accessible by workers during job execution. * If stager has not been set explicitly, an instance of this class will be created and used as * the resource stager. */ @Description( "The class of the stager that should be created and used to stage resources. " + "If stager has not been set explicitly, an instance of the this class will be created " + "and used as the resource stager.") @Default.Class(GcsStager.class) Class<? extends Stager> getStagerClass();
/** * The class of the validator that should be created and used to validate paths. If pathValidator * has not been set explicitly, an instance of this class will be constructed and used as the path * validator. */ @Description( "The class of the validator that should be created and used to validate paths. " + "If pathValidator has not been set explicitly, an instance of this class will be " + "constructed and used as the path validator.") @Default.Class(GcsPathValidator.class) Class<? extends PathValidator> getPathValidatorClass();
/** * The class of the credential factory that should be created and used to create credentials. If * gcpCredential has not been set explicitly, an instance of this class will be constructed and * used as a credential factory. */ @Description( "The class of the credential factory that should be created and used to create " + "credentials. If gcpCredential has not been set explicitly, an instance of this class will " + "be constructed and used as a credential factory.") @Default.Class(GcpCredentialFactory.class) Class<? extends CredentialFactory> getCredentialFactoryClass();