public class DefaultIdentifierFactory extends Object implements IdentifierFactory
A string representation is broken into two parts type and type-specific details separated by "://" A remote identifier implementation should implement a constructor that accepts a string. The factory invokes a proper constructor by reflection.
Constructor and Description |
---|
DefaultIdentifierFactory()
Constructs a default remote identifier factory.
|
DefaultIdentifierFactory(Map<String,Class<? extends Identifier>> typeToClazzMap)
Constructs a default remote identifier factory.
|
@Inject public DefaultIdentifierFactory()
public DefaultIdentifierFactory(Map<String,Class<? extends Identifier>> typeToClazzMap)
typeToClazzMap
- the map of type strings to classes of remote identifierspublic Identifier getNewInstance(String str)
getNewInstance
in interface IdentifierFactory
str
- a string representationRemoteRuntimeException
Copyright © 2017 The Apache Software Foundation. All rights reserved.