You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by hc...@apache.org on 2005/01/24 11:29:21 UTC
cvs commit: jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/event CacheChangeEvent.java CacheClearEvent.java CachePutBeanCloneEvent.java CachePutBeanCopyEvent.java CachePutCopyEvent.java CachePutEvent.java CacheRemoveEvent.java
hchar 2005/01/24 02:29:21
Added: sandbox/yajcache/src/org/apache/jcs/yajcache/event
CacheChangeEvent.java CacheClearEvent.java
CachePutBeanCloneEvent.java
CachePutBeanCopyEvent.java CachePutCopyEvent.java
CachePutEvent.java CacheRemoveEvent.java
Log:
cache change events
Revision Changes Path
1.1 jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/event/CacheChangeEvent.java
Index: CacheChangeEvent.java
===================================================================
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jcs.yajcache.event;
import org.apache.jcs.yajcache.annotate.*;
import org.apache.jcs.yajcache.core.ICache;
/**
*
* @author Hanson Char
*/
@CopyRightApache
public abstract class CacheChangeEvent<V> extends java.util.EventObject {
/** Creates a new instance of CacheEvent */
protected CacheChangeEvent(@NonNullable ICache<V> cache) {
super(cache);
}
protected @NonNullable ICache<V> getCache() {
return (ICache<V>)super.getSource();
}
}
1.1 jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/event/CacheClearEvent.java
Index: CacheClearEvent.java
===================================================================
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jcs.yajcache.event;
import org.apache.jcs.yajcache.annotate.*;
import org.apache.jcs.yajcache.core.ICache;
/**
*
* @author Hanson Char
*/
@CopyRightApache
public class CacheClearEvent<V> extends CacheChangeEvent<V> {
public CacheClearEvent(@NonNullable ICache<V> cache)
{
super(cache);
}
}
1.1 jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/event/CachePutBeanCloneEvent.java
Index: CachePutBeanCloneEvent.java
===================================================================
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jcs.yajcache.event;
import org.apache.jcs.yajcache.annotate.*;
import org.apache.jcs.yajcache.core.ICache;
/**
*
* @author Hanson Char
*/
@CopyRightApache
public class CachePutBeanCloneEvent<V> extends CachePutEvent<V> {
protected CachePutBeanCloneEvent(@NonNullable ICache<V> cache,
@NonNullable String key, @NonNullable V val)
{
super(cache, key, val);
}
}
1.1 jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/event/CachePutBeanCopyEvent.java
Index: CachePutBeanCopyEvent.java
===================================================================
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jcs.yajcache.event;
import org.apache.jcs.yajcache.annotate.*;
import org.apache.jcs.yajcache.core.ICache;
/**
*
* @author Hanson Char
*/
@CopyRightApache
public class CachePutBeanCopyEvent<V> extends CachePutEvent<V> {
public CachePutBeanCopyEvent(@NonNullable ICache<V> cache,
@NonNullable String key, @NonNullable V val)
{
super(cache, key, val);
}
}
1.1 jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/event/CachePutCopyEvent.java
Index: CachePutCopyEvent.java
===================================================================
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jcs.yajcache.event;
import org.apache.jcs.yajcache.annotate.*;
import org.apache.jcs.yajcache.core.ICache;
/**
*
* @author Hanson Char
*/
@CopyRightApache
public class CachePutCopyEvent<V> extends CachePutEvent<V> {
public CachePutCopyEvent(@NonNullable ICache<V> cache,
@NonNullable String key, @NonNullable V val)
{
super(cache, key, val);
}
}
1.1 jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/event/CachePutEvent.java
Index: CachePutEvent.java
===================================================================
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jcs.yajcache.event;
import org.apache.jcs.yajcache.annotate.*;
import org.apache.jcs.yajcache.core.ICache;
/**
*
* @author Hanson Char
*/
@CopyRightApache
public class CachePutEvent<V> extends CacheChangeEvent {
private final @NonNullable String key;
private final @NonNullable V value;
public CachePutEvent(@NonNullable ICache<V> cache,
@NonNullable String key, @NonNullable V value)
{
super(cache);
this.key = key;
this.value = value;
}
public String getKey() {
return key;
}
public V getValue() {
return value;
}
}
1.1 jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/event/CacheRemoveEvent.java
Index: CacheRemoveEvent.java
===================================================================
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jcs.yajcache.event;
import org.apache.jcs.yajcache.annotate.*;
import org.apache.jcs.yajcache.core.ICache;
/**
*
* @author Hanson Char
*/
@CopyRightApache
public class CacheRemoveEvent<V> extends CacheChangeEvent<V> {
private final @NonNullable String key;
public CacheRemoveEvent(@NonNullable ICache<V> cache,
@NonNullable String key)
{
super(cache);
this.key = key;
}
public String getKey() {
return key;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org