public abstract class CombiningAlgFactory extends Object
Modifier | Constructor and Description |
---|---|
protected |
CombiningAlgFactory()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
addAlgorithm(CombiningAlgorithm alg)
Adds a combining algorithm to the factory.
|
static void |
addCombiningAlg(CombiningAlgorithm alg)
Deprecated.
As of version 1.2, replaced by
addAlgorithm(CombiningAlgorithm) .
The new factory system requires you to get a factory
instance and then call the non-static methods on that
factory. The static versions of these methods have been
left in for now, but are slower and will be removed in
a future version. |
abstract CombiningAlgorithm |
createAlgorithm(URI algId)
Tries to return the correct combinging algorithm based on the
given algorithm ID.
|
static CombiningAlgorithm |
createCombiningAlg(URI algId)
Deprecated.
As of version 1.2, replaced by
createAlgorithm(URI) .
The new factory system requires you to get a factory
instance and then call the non-static methods on that
factory. The static versions of these methods have been
left in for now, but are slower and will be removed in
a future version. |
static CombiningAlgFactory |
getInstance()
Returns the default factory.
|
static CombiningAlgFactory |
getInstance(String identifier)
Returns a factory based on the given identifier.
|
abstract Set |
getSupportedAlgorithms()
Returns the algorithm identifiers supported by this factory.
|
static void |
registerFactory(String identifier,
CombiningAlgFactoryProxy proxy)
Registers the given factory proxy with the given identifier.
|
static void |
setDefaultFactory(CombiningAlgFactoryProxy proxy)
Sets the default factory.
|
protected CombiningAlgFactory()
public static final CombiningAlgFactory getInstance()
CombiningAlgFactory
public static final CombiningAlgFactory getInstance(String identifier) throws UnknownIdentifierException
identifier
- the identifier for a factoryCombiningAlgFactory
UnknownIdentifierException
- if the given identifier isn't
registeredpublic static final void setDefaultFactory(CombiningAlgFactoryProxy proxy)
proxy
- the CombiningAlgFactoryProxy
to set as the
new default factory proxypublic static final void registerFactory(String identifier, CombiningAlgFactoryProxy proxy) throws IllegalArgumentException
identifier
- the identifier for the proxyproxy
- the CombiningAlgFactoryProxy
to register with
the given identifierIllegalArgumentException
- if the identifier is already usedpublic abstract void addAlgorithm(CombiningAlgorithm alg)
alg
- the combining algorithm to addIllegalArgumentException
- if the algorithm is already registeredpublic static void addCombiningAlg(CombiningAlgorithm alg)
addAlgorithm(CombiningAlgorithm)
.
The new factory system requires you to get a factory
instance and then call the non-static methods on that
factory. The static versions of these methods have been
left in for now, but are slower and will be removed in
a future version.alg
- the combining algorithm to addIllegalArgumentException
- if the algorithm is already registeredpublic abstract Set getSupportedAlgorithms()
Set
of String
spublic abstract CombiningAlgorithm createAlgorithm(URI algId) throws UnknownIdentifierException
algId
- the identifier by which the algorithm is knownUnknownIdentifierException
- algId is unknownpublic static CombiningAlgorithm createCombiningAlg(URI algId) throws UnknownIdentifierException
createAlgorithm(URI)
.
The new factory system requires you to get a factory
instance and then call the non-static methods on that
factory. The static versions of these methods have been
left in for now, but are slower and will be removed in
a future version.algId
- the identifier by which the algorithm is knownUnknownIdentifierException
- algId is unknownCopyright © 2023 JBoss by Red Hat. All rights reserved.