Package com.sun.corba.ee.spi.copyobject
Interface CopierManager
-
- All Known Implementing Classes:
CopierManagerImpl
public interface CopierManagerManager 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetDefaultId()Return the copier for the default copier id.org.glassfish.pfl.dynamic.copyobject.spi.ObjectCopierFactorygetDefaultObjectCopierFactory()org.glassfish.pfl.dynamic.copyobject.spi.ObjectCopierFactorygetObjectCopierFactory(int id)voidregisterObjectCopierFactory(org.glassfish.pfl.dynamic.copyobject.spi.ObjectCopierFactory factory, int id)Register an ObjectCopierFactory under a particular id.voidsetDefaultId(int id)Set the Id of the copier to use if no other copier has been set.
-
-
-
Method Detail
-
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 registerid- ID of the factory
-
-