public interface TNodeService
Modifier and Type | Method and Description |
---|---|
void |
addProvider(String name,
String providerClass)
Adds a provider instance to the service.
|
TNodeProvider |
getProvider(String name)
Returns a provider proxy.
|
String |
getProviderClass(String providerName)
Returns the provider class name for the specified provider
|
Collection<String> |
getProviderNames()
Returns all provider names.
|
Map<String,String> |
getProviderProperties(String name)
Returns properties of the specified provider.
|
boolean |
isProviderKnown(String providerName)
Returns true, if the specified provider is known, and false otherwise
|
void |
removeProvider(String name)
Removes a provider instance from the service.
|
void |
setProviderProperties(String name,
Map<String,String> properties)
Sets properties of the specified provider.
|
void addProvider(@NotNull String name, @NotNull String providerClass) throws IllegalArgumentException
providerClass
occure not until calling getProvider(String)
.name
- provider name.providerClass
- provider class.IllegalArgumentException
- if a provider with the given name
already exists.@NotNull Collection<String> getProviderNames()
@Nullable String getProviderClass(String providerName)
providerName
- the name of the provider, to get the class name forboolean isProviderKnown(String providerName)
providerName
- the name of the providerTNodeProvider getProvider(@NotNull String name) throws IllegalArgumentException, IllegalStateException
name
- provider name.IllegalArgumentException
- if the provider name is unknown.IllegalStateException
- if the provider class couldn't be instantiated.@NotNull Map<String,String> getProviderProperties(String name) throws IllegalArgumentException
name
- provider name.IllegalArgumentException
- if the provider name is unknown.void setProviderProperties(@NotNull String name, @NotNull Map<String,String> properties) throws IllegalArgumentException
name
- provider nameproperties
- properties.IllegalArgumentException
- if the provider name is unknown.void removeProvider(@NotNull String name) throws IllegalArgumentException
name
- provider name.IllegalArgumentException
- if the provider name is unknown.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500