com.holonplatform.spring.ScopeTenant Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of holon-spring Show documentation
Show all versions of holon-spring Show documentation
Holon core Spring integration
package com.holonplatform.spring;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.core.annotation.AliasFor;
import com.holonplatform.spring.internal.tenant.TenantScope;
/**
* Stereotype annotation for @Scope("tenant")
tenant scope declaration.
*/
@Scope(TenantScope.SCOPE_NAME)
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ScopeTenant {
/**
* Alias for {@link Scope#proxyMode}.
*
* Defaults to {@link ScopedProxyMode#INTERFACES}.
*
* @return The scoped proxy mode
* @see Scope#proxyMode()
*/
@AliasFor(annotation = Scope.class)
ScopedProxyMode proxyMode() default ScopedProxyMode.INTERFACES;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy