Class IdentifiableProviderImpl<V extends Identifiable>

  • All Implemented Interfaces:
    IdentifiableProvider<V>, javax.inject.Provider<V>

    public abstract class IdentifiableProviderImpl<V extends Identifiable>
    extends Object
    implements IdentifiableProvider<V>
    Use this to create various identifiable things, i.e., objects that have globally unique ids.

    Created by Jeff Gaynor
    on 4/3/12 at 2:53 PM

    • Field Detail

      • idProvider

        protected javax.inject.Provider<Identifier> idProvider
    • Constructor Detail

      • IdentifiableProviderImpl

        protected IdentifiableProviderImpl​(javax.inject.Provider<Identifier> idProvider)
    • Method Detail

      • get

        public V get()
        Specified by:
        get in interface javax.inject.Provider<V extends Identifiable>
      • createNewId

        protected Identifier createNewId​(boolean createNewIdentifier)
        This utility method returns a new identifier if the argument is true and a null otherwise. Call this to do the identifier creation logic when implementing IdentifiableProvider.get(boolean).
        Parameters:
        createNewIdentifier -
        Returns: