Skip navigation links
oracle.wcps.connection.configuration
Class AnnotatedConfiguration
java.lang.Object
oracle.wcps.connection.configuration.AnnotatedConfiguration
- All Implemented Interfaces:
- java.util.Map<java.lang.String,java.lang.Object>
- Direct Known Subclasses:
- FragmentedURLHttpAnnotatedConfiguration, RemoteHttpAnnotatedConfiguration
-
@ConnectionConfiguration(cacheExpirySeconds=60)
public abstract class AnnotatedConfiguration
- extends java.lang.Object
- implements java.util.Map<java.lang.String,java.lang.Object>
This base class is to be used for connection service configuration.
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Field Summary |
java.lang.Boolean |
isDefault
Flag to indicate the connection represents the "default" connection. |
java.lang.String |
name
Represents the name of the connection. |
Method Summary |
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
entrySet()
|
java.lang.Object |
get(java.lang.Object key)
|
java.lang.String |
getType()
Returns the connection type of descendant classes, based on annotation or implementation class. |
boolean |
isEmpty()
|
java.util.Set<java.lang.String> |
keySet()
|
java.lang.Object |
put(java.lang.String key, java.lang.Object value)
|
void |
putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> map)
|
java.lang.Object |
remove(java.lang.Object key)
|
int |
size()
|
java.util.Collection<java.lang.Object> |
values()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
name
@ConnectionProperty
@L10n(bundle="oracle.wcps.connection.configuration.AnnotatedConfigurationResources")
@L10nDesc(key="annotated.config.name.description")
public java.lang.String name
- Represents the name of the connection.
isDefault
@ConnectionProperty
@L10n(bundle="oracle.wcps.connection.configuration.AnnotatedConfigurationResources")
@L10nDesc(key="annotated.config.isDefault.description")
public java.lang.Boolean isDefault
- Flag to indicate the connection represents the "default" connection. Multiple connections can have the "isDefault" flag set to true. If this is the case, it is up to the individual provider to return the default connection.
AnnotatedConfiguration
public AnnotatedConfiguration()
getType
public final java.lang.String getType()
- Returns the connection type of descendant classes, based on annotation or implementation class.
-
- Returns:
- The connection type.
clear
public void clear()
-
- Specified by:
clear
in interface java.util.Map<java.lang.String,java.lang.Object>
containsKey
public boolean containsKey(java.lang.Object key)
-
- Specified by:
containsKey
in interface java.util.Map<java.lang.String,java.lang.Object>
containsValue
public boolean containsValue(java.lang.Object value)
-
- Specified by:
containsValue
in interface java.util.Map<java.lang.String,java.lang.Object>
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
-
- Specified by:
entrySet
in interface java.util.Map<java.lang.String,java.lang.Object>
get
public java.lang.Object get(java.lang.Object key)
-
- Specified by:
get
in interface java.util.Map<java.lang.String,java.lang.Object>
isEmpty
public boolean isEmpty()
-
- Specified by:
isEmpty
in interface java.util.Map<java.lang.String,java.lang.Object>
keySet
public java.util.Set<java.lang.String> keySet()
-
- Specified by:
keySet
in interface java.util.Map<java.lang.String,java.lang.Object>
put
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
-
- Specified by:
put
in interface java.util.Map<java.lang.String,java.lang.Object>
putAll
public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> map)
-
- Specified by:
putAll
in interface java.util.Map<java.lang.String,java.lang.Object>
remove
public java.lang.Object remove(java.lang.Object key)
-
- Specified by:
remove
in interface java.util.Map<java.lang.String,java.lang.Object>
size
public int size()
-
- Specified by:
size
in interface java.util.Map<java.lang.String,java.lang.Object>
values
public java.util.Collection<java.lang.Object> values()
-
- Specified by:
values
in interface java.util.Map<java.lang.String,java.lang.Object>
Skip navigation links
Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.