|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.concurrent.ConcurrentHashMap<Object,Transaction.OptionMetadata> org.eclipse.emf.transaction.util.BasicTransactionOptionMetadataRegistry
public class BasicTransactionOptionMetadataRegistry
A simple implementation of the transaction option metadata registry API.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from interface org.eclipse.emf.transaction.Transaction.OptionMetadata.Registry |
---|
INSTANCE |
Constructor Summary | |
---|---|
|
BasicTransactionOptionMetadataRegistry()
Initializes me with the shared registry instance as my delegate. |
protected |
BasicTransactionOptionMetadataRegistry(Transaction.OptionMetadata.Registry delegate)
Initializes me with a registry to which I delegate options that I do not provide for. |
Method Summary | |
---|---|
protected Transaction.OptionMetadata |
basicGetOptionMetadata(Object option)
Gets the specified option's metadata, possibly from a delegate, without lazily creating and caching a result for unrecognized options. |
protected Transaction.OptionMetadata |
delegatedGetOptionMetadata(Object option)
|
Transaction.OptionMetadata |
getOptionMetadata(Object option)
Obtains a metadata object describing the specified transaction option. This implementation caches, locally, the lazily created metadata for options that are unrecognized. |
Transaction.OptionMetadata |
register(Transaction.OptionMetadata metadata)
Registers an option metadata descriptor. |
Methods inherited from class java.util.concurrent.ConcurrentHashMap |
---|
clear, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, put, putAll, putIfAbsent, remove, remove, replace, replace, size, values |
Methods inherited from class java.util.AbstractMap |
---|
clone, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public BasicTransactionOptionMetadataRegistry()
protected BasicTransactionOptionMetadataRegistry(Transaction.OptionMetadata.Registry delegate)
delegate
- my delegateMethod Detail |
---|
public Transaction.OptionMetadata getOptionMetadata(Object option)
Obtains a metadata object describing the specified transaction option. For unrecognized options, a default meta-data is provided that gives reasonable answers.
This implementation caches, locally, the lazily created metadata for options that are unrecognized.
getOptionMetadata
in interface Transaction.OptionMetadata.Registry
option
- an option key
null
)protected Transaction.OptionMetadata basicGetOptionMetadata(Object option)
option
- the option
null
if none is found in either the
local or the delegate registryprotected Transaction.OptionMetadata delegatedGetOptionMetadata(Object option)
public Transaction.OptionMetadata register(Transaction.OptionMetadata metadata)
metadata
- the option metadata to register
null
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |