org.jboss.metadata.spi.retrieval.basic
Class BasicItem<T>

java.lang.Object
  extended by org.jboss.metadata.spi.retrieval.basic.BasicItem<T>
Type Parameters:
T - The item type
All Implemented Interfaces:
Item<T>
Direct Known Subclasses:
BasicAnnotationsItem, BasicMetaDataItem, BasicMetaDatasItem

public abstract class BasicItem<T>
extends Object
implements Item<T>

BasicItem.

Version:
$Revision: 57133 $
Author:
Adrian Brock

Constructor Summary
BasicItem(MetaDataLoader loader)
          Create a new BasicItem.
 
Method Summary
 void invalidate()
           
 boolean isCachable()
          Whether the item is cachable
 boolean isValid()
          Whether the value is valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.metadata.spi.retrieval.Item
getValue
 

Constructor Detail

BasicItem

public BasicItem(MetaDataLoader loader)
Create a new BasicItem.

Parameters:
loader - the loader
Method Detail

isCachable

public boolean isCachable()
Description copied from interface: Item
Whether the item is cachable

Specified by:
isCachable in interface Item<T>
Returns:
true when cachable

isValid

public boolean isValid()
Description copied from interface: Item
Whether the value is valid

Specified by:
isValid in interface Item<T>
Returns:
true when valid

invalidate

public void invalidate()


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.