public abstract class AbstractPropertyConnector extends AbstractConnector
Connector
s which are Property-String-related.
Only #getString(String) must be implemented. Example implementations are PropertyFileConnector
or SystemPropertyConnector
.
Constructor and Description |
---|
AbstractPropertyConnector() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getContent(String key)
return a byte[]-Value for the given key or
null if no file-content for the key where found. |
Object |
getObject(String key)
return a Object-Value for the given key.
|
addConnector, getConnectors, getContentResolver, getName, getObjectResolver, init, setContentResolver, setName, setObjectResolver
public byte[] getContent(String key)
Connector
null
if no file-content for the key where found.
The concrete implementation can use the ContentResolver if required
key
- the Key for the configuration-property. e.g.: "com/mycompany/myapp/myParameterKey"public Object getObject(String key)
Connector
The concrete implementation can use the ObjectResolver if required
key
- the Key for the configuration-property. e.g.: "com/mycompany/myapp/myParameterKey"Copyright © 2008–2016 Brabenetz Harald, Austria. All rights reserved.