private static ManagedClassSPI getManagedClass ( ContainerSPI container , String interfaceName , String requestURI ) throws ClassNotFoundException { Class < ? > interfaceClass = Classes . forOptionalName ( interfaceName ) ; if ( interfaceClass == null ) { log . error ( "HTTP-RMI request for not existing class |%s|." , interfaceName ) ; throw new ClassNotFoundException ( requestURI ) ; } ManagedClassSPI managedClass = container . getManagedClass ( interfaceClass ) ; if ( managedClass == null ) { log . error ( "HTTP-RMI request for not existing managed class |%s|." , interfaceName ) ; throw new ClassNotFoundException ( requestURI ) ; } if ( ! managedClass . isRemotelyAccessible ( ) ) { log . error ( "HTTP-RMI request for local managed class |%s|. See @Remote annotation." , interfaceName ) ; throw new ClassNotFoundException ( requestURI ) ; } return managedClass ; }
Get remotely accessible managed class registered to a certain interface class .