Class RoutedTripFactoryImpl<T extends RoutedTrip>

    • Constructor Detail

      • RoutedTripFactoryImpl

        protected RoutedTripFactoryImpl​(IdGroupingToken tokenId,
                                        RoutedTrips<T> routedTrips)
        Constructor
        Parameters:
        tokenId - to use
        routedTrips - to use
    • Method Detail

      • createNew

        protected abstract T createNew()
        Create a newly created instance without registering on the container
        Returns:
        created routed trip instance
      • registerNew

        public T registerNew()
        Register a newly created instance on the underlying container
        Specified by:
        registerNew in interface RoutedTripFactory<T extends RoutedTrip>
        Returns:
        created instance