All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.springframework.content.gcs.config.EnableGCPStorage Maven / Gradle / Ivy

There is a newer version: 3.0.14
Show newest version
package org.springframework.content.gcs.config;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.context.annotation.Import;

import internal.org.springframework.content.gcs.config.GCPStorageConfiguration;
import internal.org.springframework.content.gcs.config.GCPStorageFactoryBean;
import internal.org.springframework.content.gcs.config.GCPStorageRegistrar;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import({ GCPStorageConfiguration.class, GCPStorageRegistrar.class })
public @interface EnableGCPStorage {

	/**
	 * Alias for the {@link #basePackages()} attribute. Allows for more concise annotation
	 * declarations e.g.: {@code @EnableJpaRepositories("org.my.pkg")} instead of
	 * {@code @EnableJpaRepositories(basePackages="org.my.pkg")}.
	 *
	 * @return base packages
	 */
	String[] value() default {};

	/**
	 * Base packages to scan for annotated components. {@link #value()} is an alias for
	 * (and mutually exclusive with) this attribute. Use {@link #basePackageClasses()} for
	 * a type-safe alternative to String-based package names.
	 *
	 * @return base packages
	 */
	String[] basePackages() default {};

	/**
	 * Type-safe alternative to {@link #basePackages()} for specifying the packages to
	 * scan for annotated components. The package of each class specified will be scanned.
	 * Consider creating a special no-op marker class or interface in each package that
	 * serves no purpose other than being referenced by this attribute.
	 *
	 * @return base package classes
	 */
	Class[] basePackageClasses() default {};

	/**
	 * Returns the {@link FactoryBean} class to be used for each repository instance.
	 * Defaults to {@link GCPStorageFactoryBean}.
	 *
	 * @return s3 store factory bean
	 */
	Class storeFactoryBeanClass() default GCPStorageFactoryBean.class;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy