Class AbstractTokenMakerFactory

    • Field Detail

      • tokenMakerMap

        private java.util.Map<java.lang.String,​java.lang.Object> tokenMakerMap
        A mapping from keys to the names of TokenMaker implementation class names. When TokenMakerFactory.getTokenMaker(String) is called with a key defined in this map, a TokenMaker of the corresponding type is returned.
    • Constructor Detail

      • AbstractTokenMakerFactory

        protected AbstractTokenMakerFactory()
        Constructor.
    • Method Detail

      • getTokenMakerImpl

        protected TokenMaker getTokenMakerImpl​(java.lang.String key)
        Returns a TokenMaker for the specified key.
        Specified by:
        getTokenMakerImpl in class TokenMakerFactory
        Parameters:
        key - The key.
        Returns:
        The corresponding TokenMaker, or null if none matches the specified key.
      • keySet

        public java.util.Set<java.lang.String> keySet()
        Description copied from class: TokenMakerFactory
        Returns the set of keys that this factory maps to token makers.
        Specified by:
        keySet in class TokenMakerFactory
        Returns:
        The set of keys.
      • putMapping

        public void putMapping​(java.lang.String key,
                               java.lang.String className)
        Adds a mapping from a key to a TokenMaker implementation class name.
        Parameters:
        key - The key.
        className - The TokenMaker class name.
        See Also:
        putMapping(String, String, ClassLoader)
      • putMapping

        public void putMapping​(java.lang.String key,
                               java.lang.String className,
                               java.lang.ClassLoader cl)
        Adds a mapping from a key to a TokenMaker implementation class name.
        Parameters:
        key - The key.
        className - The TokenMaker class name.
        cl - The class loader to use when loading the class.
        See Also:
        putMapping(String, String)