Class CopierManagerImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int defaultId  
      private org.glassfish.pfl.basic.contain.DenseIntMapImpl<org.glassfish.pfl.dynamic.copyobject.spi.ObjectCopierFactory> map  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getDefaultId()
      Return the copier for the default copier id.
      org.glassfish.pfl.dynamic.copyobject.spi.ObjectCopierFactory getDefaultObjectCopierFactory()  
      org.glassfish.pfl.dynamic.copyobject.spi.ObjectCopierFactory getObjectCopierFactory​(int id)  
      void registerObjectCopierFactory​(org.glassfish.pfl.dynamic.copyobject.spi.ObjectCopierFactory factory, int id)
      Register an ObjectCopierFactory under a particular id.
      void setDefaultId​(int id)
      Set the Id of the copier to use if no other copier has been set.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • defaultId

        private int defaultId
      • map

        private final org.glassfish.pfl.basic.contain.DenseIntMapImpl<org.glassfish.pfl.dynamic.copyobject.spi.ObjectCopierFactory> map
    • Constructor Detail

      • CopierManagerImpl

        public CopierManagerImpl()
    • Method Detail

      • setDefaultId

        public void setDefaultId​(int id)
        Description copied from interface: CopierManager
        Set the Id of the copier to use if no other copier has been set.
        Specified by:
        setDefaultId in interface CopierManager
        Parameters:
        id - ID of the copier
      • getDefaultId

        public int getDefaultId()
        Description copied from interface: CopierManager
        Return the copier for the default copier id. Throws a BAD_PARAM exception if no default copier id has been set.
        Specified by:
        getDefaultId in interface CopierManager
        Returns:
        ID of the copier
      • getObjectCopierFactory

        public org.glassfish.pfl.dynamic.copyobject.spi.ObjectCopierFactory getObjectCopierFactory​(int id)
        Specified by:
        getObjectCopierFactory in interface CopierManager
      • registerObjectCopierFactory

        public void registerObjectCopierFactory​(org.glassfish.pfl.dynamic.copyobject.spi.ObjectCopierFactory factory,
                                                int id)
        Description copied from interface: CopierManager
        Register an ObjectCopierFactory under a particular id. This can be retrieved later by getObjectCopierFactory.
        Specified by:
        registerObjectCopierFactory in interface CopierManager
        Parameters:
        factory - Factory to register
        id - ID of the factory