@SuppressWarnings("unchecked") public static void register(String algorithmURI,String implementingClass) throws AlgorithmAlreadyRegisteredException, ClassNotFoundException, InvalidTransformException {
  JavaUtils.checkRegisterPermission();
  Class<? extends TransformSpi> transformSpi=transformSpiHash.get(algorithmURI);
  if (transformSpi != null) {
    Object exArgs[]={algorithmURI,transformSpi};
    throw new AlgorithmAlreadyRegisteredException("algorithm.alreadyRegistered",exArgs);
  }
  Class<? extends TransformSpi> transformSpiClass=(Class<? extends TransformSpi>)ClassLoaderUtils.loadClass(implementingClass,Transform.class);
  transformSpiHash.put(algorithmURI,transformSpiClass);
}

@ SuppressWarnings ( "unchecked" ) public static void register ( String algorithmURI , String implementingClass ) throws AlgorithmAlreadyRegisteredException , ClassNotFoundException , InvalidTransformException { JavaUtils . checkRegisterPermission ( ) ; Class < ? extends TransformSpi > transformSpi = transformSpiHash . get ( algorithmURI ) ; if ( transformSpi != null ) { Object exArgs [ ] = { algorithmURI , transformSpi } ; throw new AlgorithmAlreadyRegisteredException ( "algorithm.alreadyRegistered" , exArgs ) ; } Class < ? extends TransformSpi > transformSpiClass = ( Class < ? extends TransformSpi > ) ClassLoaderUtils . loadClass ( implementingClass , Transform . class ) ; transformSpiHash . put ( algorithmURI , transformSpiClass ) ; }
registers implementing class of the transform algorithm with algorithmuri
