|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.message.spi.Provider
Abstract Provider base class and factory for accessing berlib specific Provider implementations and their SPI implementation classes.
Field Summary | |
static java.lang.String |
BERLIB_PROPFILE
The default file searched for on CP to load default provider props. |
static java.lang.String |
BERLIB_PROVIDER
BER Library provider class name property |
static java.lang.String |
DEFAULT_PROVIDER
Default BER Library provider class name |
static java.lang.String |
PROVIDER_MONITOR_KEY
A provider monitor key. |
static java.lang.String |
USING_DEFAULTS_MSG
Message to use when using defaults |
Constructor Summary | |
protected |
Provider(java.lang.String name,
java.lang.String vendor)
Creates an instance of a Provider. |
Method Summary | |
abstract ProviderDecoder |
getDecoder(java.util.Set binaries)
Gets the decoder associated with this provider. |
abstract ProviderEncoder |
getEncoder()
Gets the encoder associated with this provider. |
static java.util.Properties |
getEnvironment()
Loads the properties for the effective environment. |
java.lang.String |
getName()
Gets the descriptive name for this Provider. |
static Provider |
getProvider()
Gets an instance of the configured Provider. |
static Provider |
getProvider(java.util.Hashtable a_env)
Gets an instance of the Provider specified by the
asn.1.berlib.provider
property value. |
abstract TransformerSpi |
getTransformer()
Gets the transformer associated with this provider. |
java.lang.String |
getVendor()
Gets this Providers vendor name if it was provided. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_PROVIDER
public static final java.lang.String BERLIB_PROVIDER
public static final java.lang.String BERLIB_PROPFILE
public static final java.lang.String PROVIDER_MONITOR_KEY
public static final java.lang.String USING_DEFAULTS_MSG
Constructor Detail |
protected Provider(java.lang.String name, java.lang.String vendor)
name
- a descriptive name for a providervendor
- the berlib vendor used by the providerMethod Detail |
public final java.lang.String getName()
public final java.lang.String getVendor()
public abstract ProviderEncoder getEncoder() throws ProviderException
ProviderException
- if the provider or its encoder cannot be foundpublic abstract ProviderDecoder getDecoder(java.util.Set binaries) throws ProviderException
ProviderException
- if the provider or its decoder cannot be foundpublic abstract TransformerSpi getTransformer() throws ProviderException
ProviderException
- if the provider or its transformer cannot be foundpublic static Provider getProvider() throws ProviderException
asn.1.berlib.provider
property. The property is searched for within berlib.properties files
that are on the java.class.path. If at least one berlib.properties is not
found the default provider is used. The resultant value (default or
otherwise) for the property can be overridden by command line properties.
ProviderException
- if the provider cannot be foundpublic static Provider getProvider(java.util.Hashtable a_env) throws ProviderException
asn.1.berlib.provider
property value. The property is searched for within properties object
passed in as a parameter for this method only.
a_env
- the environment used to locate the provider
ProviderException
- if the provider cannot be foundpublic static java.util.Properties getEnvironment()
-Dproperty=value
java command-line arguments.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |