File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes What is scope= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "What is scope="tenant" mean?" Watch "What is scope="tenant" mean?" New topic

What is scope="tenant" mean?

Jyothsna Panchagnula
Ranch Hand

Joined: Jul 11, 2005
Posts: 113
I see that in the Spring configuration files , that scope="tenant" is used ?
I tried searching in , Spring forums and googled it but couldn't get much info.

a) where this will be used and in what contenxt?
b) what is the purpose of it?

Bill Gorder

Joined: Mar 07, 2010
Posts: 1682

Well I can tell you it is not a standard scope. Either it is custom to your application or to some other 3rd party library you are using. You can search for CustomScopeConfigurer in your context xml files to see if you can find it being registered anywhere and then take a look at the implementation to figure out what it does. If you don't find it there you can look for all implemenations of the Scope interface in your workspace and try to figure out what library it is coming out of.

Good luck

[How To Ask Questions][Read before you PM me]
Adrien Be

Joined: Oct 08, 2013
Posts: 2
This is a Hybris scope.

This is only for version prior Hybris 5.

Tenant scope: (Hybris <5) one bean instantiated per tenant of hybris.

More info on the Hybris forum & wiki. see
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1850

This is not the standard scope defined by spring framework. This must be a custom scope defined by your application.
Salil Vverma
Ranch Hand

Joined: Sep 06, 2009
Posts: 255

Hey Adrien,

What is Hybris ? how is it related to spring ?

Salil Verma

Salil Verma
Adrien Be

Joined: Oct 08, 2013
Posts: 2
Salil Vverma wrote:
What is Hybris ? how is it related to spring ?

Hybris is an eCommerce platform written in Java. Hybris uses Spring. see
I agree. Here's the link:
subject: What is scope="tenant" mean?
It's not a secret anymore!