Interface CopierManager

All Known Implementing Classes:
CopierManagerImpl

public interface CopierManager
Manager of ObjectCopier implementations used to support javax.rmi.CORBA.Util.copyObject(s). This provides simple methods for registering all supported ObjectCopier factories. A default copier is also supported, for use in contexts where no specific copier id is available.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return the copier for the default copier id.
    org.glassfish.pfl.dynamic.copyobject.spi.ObjectCopierFactory
     
    org.glassfish.pfl.dynamic.copyobject.spi.ObjectCopierFactory
     
    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.
  • Method Details

    • setDefaultId

      void setDefaultId(int id)
      Set the Id of the copier to use if no other copier has been set.
      Parameters:
      id - ID of the copier
    • getDefaultId

      int getDefaultId()
      Return the copier for the default copier id. Throws a BAD_PARAM exception if no default copier id has been set.
      Returns:
      ID of the copier
    • getObjectCopierFactory

      org.glassfish.pfl.dynamic.copyobject.spi.ObjectCopierFactory getObjectCopierFactory(int id)
    • getDefaultObjectCopierFactory

      org.glassfish.pfl.dynamic.copyobject.spi.ObjectCopierFactory getDefaultObjectCopierFactory()
    • registerObjectCopierFactory

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