Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
751 additions
and
55 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
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
61 changes: 61 additions & 0 deletions
61
src/main/java/org/jboss/seam/infinispan/event/cache/CacheEntryCreatedAdapter.java
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,61 @@ | ||
package org.jboss.seam.infinispan.event.cache; | ||
|
||
import javax.enterprise.event.Event; | ||
|
||
import org.infinispan.Cache; | ||
import org.infinispan.notifications.Listener; | ||
import org.infinispan.notifications.cachelistener.annotation.CacheEntryCreated; | ||
import org.infinispan.notifications.cachelistener.event.CacheEntryCreatedEvent; | ||
import org.infinispan.transaction.xa.GlobalTransaction; | ||
|
||
@Listener | ||
public class CacheEntryCreatedAdapter extends AbstractAdapter<CacheEntryCreatedEvent> | ||
{ | ||
|
||
public static final CacheEntryCreatedEvent EMTPTY = new CacheEntryCreatedEvent() | ||
{ | ||
|
||
public Type getType() | ||
{ | ||
return null; | ||
} | ||
|
||
public Object getKey() | ||
{ | ||
return null; | ||
} | ||
|
||
public GlobalTransaction getGlobalTransaction() | ||
{ | ||
return null; | ||
} | ||
|
||
public boolean isOriginLocal() | ||
{ | ||
// TODO Auto-generated method stub | ||
return false; | ||
} | ||
|
||
public boolean isPre() | ||
{ | ||
return false; | ||
} | ||
|
||
public Cache<?, ?> getCache() | ||
{ | ||
return null; | ||
} | ||
}; | ||
|
||
public CacheEntryCreatedAdapter(Event<CacheEntryCreatedEvent> event) | ||
{ | ||
super(event); | ||
} | ||
|
||
@CacheEntryCreated | ||
public void fire(CacheEntryCreatedEvent payload) | ||
{ | ||
super.fire(payload); | ||
} | ||
|
||
} |
61 changes: 61 additions & 0 deletions
61
src/main/java/org/jboss/seam/infinispan/event/cache/CacheEntryEvictedAdapter.java
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,61 @@ | ||
package org.jboss.seam.infinispan.event.cache; | ||
|
||
import javax.enterprise.event.Event; | ||
|
||
import org.infinispan.Cache; | ||
import org.infinispan.notifications.Listener; | ||
import org.infinispan.notifications.cachelistener.annotation.CacheEntryEvicted; | ||
import org.infinispan.notifications.cachelistener.event.CacheEntryEvictedEvent; | ||
import org.infinispan.transaction.xa.GlobalTransaction; | ||
|
||
@Listener | ||
public class CacheEntryEvictedAdapter extends AbstractAdapter<CacheEntryEvictedEvent> | ||
{ | ||
|
||
public static final CacheEntryEvictedEvent EMTPTY = new CacheEntryEvictedEvent() | ||
{ | ||
|
||
public Type getType() | ||
{ | ||
return null; | ||
} | ||
|
||
public Object getKey() | ||
{ | ||
return null; | ||
} | ||
|
||
public GlobalTransaction getGlobalTransaction() | ||
{ | ||
return null; | ||
} | ||
|
||
public boolean isOriginLocal() | ||
{ | ||
// TODO Auto-generated method stub | ||
return false; | ||
} | ||
|
||
public boolean isPre() | ||
{ | ||
return false; | ||
} | ||
|
||
public Cache<?, ?> getCache() | ||
{ | ||
return null; | ||
} | ||
}; | ||
|
||
public CacheEntryEvictedAdapter(Event<CacheEntryEvictedEvent> event) | ||
{ | ||
super(event); | ||
} | ||
|
||
@CacheEntryEvicted | ||
public void fire(CacheEntryEvictedEvent payload) | ||
{ | ||
super.fire(payload); | ||
} | ||
|
||
} |
61 changes: 61 additions & 0 deletions
61
src/main/java/org/jboss/seam/infinispan/event/cache/CacheEntryInvalidatedAdapter.java
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,61 @@ | ||
package org.jboss.seam.infinispan.event.cache; | ||
|
||
import javax.enterprise.event.Event; | ||
|
||
import org.infinispan.Cache; | ||
import org.infinispan.notifications.Listener; | ||
import org.infinispan.notifications.cachelistener.annotation.CacheEntryInvalidated; | ||
import org.infinispan.notifications.cachelistener.event.CacheEntryInvalidatedEvent; | ||
import org.infinispan.transaction.xa.GlobalTransaction; | ||
|
||
@Listener | ||
public class CacheEntryInvalidatedAdapter extends AbstractAdapter<CacheEntryInvalidatedEvent> | ||
{ | ||
|
||
public static final CacheEntryInvalidatedEvent EMTPTY = new CacheEntryInvalidatedEvent() | ||
{ | ||
|
||
public Type getType() | ||
{ | ||
return null; | ||
} | ||
|
||
public Object getKey() | ||
{ | ||
return null; | ||
} | ||
|
||
public GlobalTransaction getGlobalTransaction() | ||
{ | ||
return null; | ||
} | ||
|
||
public boolean isOriginLocal() | ||
{ | ||
// TODO Auto-generated method stub | ||
return false; | ||
} | ||
|
||
public boolean isPre() | ||
{ | ||
return false; | ||
} | ||
|
||
public Cache<?, ?> getCache() | ||
{ | ||
return null; | ||
} | ||
}; | ||
|
||
public CacheEntryInvalidatedAdapter(Event<CacheEntryInvalidatedEvent> event) | ||
{ | ||
super(event); | ||
} | ||
|
||
@CacheEntryInvalidated | ||
public void fire(CacheEntryInvalidatedEvent payload) | ||
{ | ||
super.fire(payload); | ||
} | ||
|
||
} |
61 changes: 61 additions & 0 deletions
61
src/main/java/org/jboss/seam/infinispan/event/cache/CacheEntryLoadedAdapter.java
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,61 @@ | ||
package org.jboss.seam.infinispan.event.cache; | ||
|
||
import javax.enterprise.event.Event; | ||
|
||
import org.infinispan.Cache; | ||
import org.infinispan.notifications.Listener; | ||
import org.infinispan.notifications.cachelistener.annotation.CacheEntryLoaded; | ||
import org.infinispan.notifications.cachelistener.event.CacheEntryLoadedEvent; | ||
import org.infinispan.transaction.xa.GlobalTransaction; | ||
|
||
@Listener | ||
public class CacheEntryLoadedAdapter extends AbstractAdapter<CacheEntryLoadedEvent> | ||
{ | ||
|
||
public static final CacheEntryLoadedEvent EMTPTY = new CacheEntryLoadedEvent() | ||
{ | ||
|
||
public Type getType() | ||
{ | ||
return null; | ||
} | ||
|
||
public Object getKey() | ||
{ | ||
return null; | ||
} | ||
|
||
public GlobalTransaction getGlobalTransaction() | ||
{ | ||
return null; | ||
} | ||
|
||
public boolean isOriginLocal() | ||
{ | ||
// TODO Auto-generated method stub | ||
return false; | ||
} | ||
|
||
public boolean isPre() | ||
{ | ||
return false; | ||
} | ||
|
||
public Cache<?, ?> getCache() | ||
{ | ||
return null; | ||
} | ||
}; | ||
|
||
public CacheEntryLoadedAdapter(Event<CacheEntryLoadedEvent> event) | ||
{ | ||
super(event); | ||
} | ||
|
||
@CacheEntryLoaded | ||
public void fire(CacheEntryLoadedEvent payload) | ||
{ | ||
super.fire(payload); | ||
} | ||
|
||
} |
Oops, something went wrong.