forked from multi-tenant/grails-multi-tenant-single-db
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multi-tenant#41 Remove Custom Spring Scope
Bump version to 0.9.0 (since functionality is being removed) Also Removed documentation Add simple test for CurrentTenantAware beans
- Loading branch information
Showing
14 changed files
with
47 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,8 @@ stacktrace.log | |
.classpath | ||
.project | ||
.settings | ||
.idea | ||
/.idea | ||
*.iml | ||
*.ipr | ||
.grails | ||
/out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ log4j = { | |
} | ||
|
||
multiTenant { | ||
perTenantBeans = [ "demoService" ] | ||
tenantClass = demo.DemoTenant | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import demo.DemoStore | ||
|
||
beans = { | ||
demoStore(DemoStore) | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
h3. v0.9.0 | ||
|
||
* Removed Tenant Scope | ||
|
||
h3. v0.8.3 April 18th 2013 | ||
|
||
* Configurable Filter Position | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package demo | ||
|
||
import grails.plugin.multitenant.core.CurrentTenant | ||
import grails.plugin.multitenant.core.CurrentTenantAware | ||
|
||
/** | ||
* @author Steve Ronderos | ||
*/ | ||
class DemoStore implements CurrentTenantAware { | ||
|
||
CurrentTenant currentTenant | ||
|
||
@Override | ||
void setCurrentTenant(CurrentTenant currentTenant) { | ||
this.currentTenant = currentTenant | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 0 additions & 98 deletions
98
src/java/grails/plugin/multitenant/core/spring/ConfiguredTenantScopedBeanProcessor.java
This file was deleted.
Oops, something went wrong.
102 changes: 0 additions & 102 deletions
102
src/java/grails/plugin/multitenant/core/spring/TenantScope.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package demo | ||
|
||
import grails.plugin.spock.IntegrationSpec | ||
|
||
/** | ||
* @author Steve Ronderos | ||
*/ | ||
class CurrentTenantAwareSpec extends IntegrationSpec { | ||
|
||
def demoStore | ||
|
||
def "current tenant is injected into the service"() { | ||
expect: | ||
demoStore != null | ||
demoStore.currentTenant != null | ||
} | ||
} |
Oops, something went wrong.