|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| JtrRmiClassLoaderServer.java | - | - | - | - |
|
||||||||||||||
| 1 | /* | |
| 2 | * JTRunner is free software; you can redistribute it and/or modify it under the | |
| 3 | * terms of the GNU General Public License as published by the Free Software | |
| 4 | * Foundation; either version 2, or (at your option) any later version. | |
| 5 | */ | |
| 6 | ||
| 7 | package jtr.remote.cl; | |
| 8 | ||
| 9 | import java.rmi.Remote; | |
| 10 | import java.rmi.RemoteException; | |
| 11 | ||
| 12 | /** | |
| 13 | * This interface defines the contract a JTR server class-loader must adhere to. | |
| 14 | * @author frusso | |
| 15 | * @version 4.0 | |
| 16 | * @since 4.0 | |
| 17 | */ | |
| 18 | public interface JtrRmiClassLoaderServer extends Remote { | |
| 19 | /** | |
| 20 | * Returns, if found, the bytecode associated with the provided <code>fqn</code>, | |
| 21 | * <code>null</code> otherwise. | |
| 22 | * @param fqn The <code>fqn</code> of the required class | |
| 23 | * @return The class' bytecode if found, <code>null</code> otherwise | |
| 24 | * @throws java.rmi.RemoteException | |
| 25 | */ | |
| 26 | public Byte[] getBytecode(String fqn) throws RemoteException; | |
| 27 | ||
| 28 | /** | |
| 29 | * Returns, if found, the byte array of the required resource, <code>null</code> | |
| 30 | * otherwise. | |
| 31 | * @param name The required resource name | |
| 32 | * @return The byte array of the resource if found, <code>null</code> otherwise | |
| 33 | * @throws java.rmi.RemoteException | |
| 34 | */ | |
| 35 | public Byte[] getResource(String name) throws RemoteException; | |
| 36 | } |
|
||||||||||