public class MultiTenantEventListener extends java.lang.Object implements PersistenceEventListener
An event listener that hooks into persistence events to enable discriminator based multi tenancy (ie org.grails.datastore.mapping.multitenancy.MultiTenancySettings.MultiTenancyMode#DISCRIMINATOR
Modifiers | Name | Description |
---|---|---|
static java.util.List<java.lang.Class<? extends org.springframework.context.ApplicationEvent>> |
SUPPORTED_EVENTS |
|
protected Datastore |
datastore |
Constructor and description |
---|
MultiTenantEventListener
(Datastore datastore) |
Type Params | Return Type | Name and description |
---|---|---|
|
public int |
getOrder() |
|
public void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
|
public boolean |
supportsEventType(java.lang.Class<? extends org.springframework.context.ApplicationEvent> eventType) |
|
public boolean |
supportsSourceType(java.lang.Class<?> sourceType) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |