Files
design-patterns/02-structural/proxy/DatabaseConnection.java

12 lines
275 B
Java

package proxy;
/**
* Subject interface — defines what both the real object and proxy expose.
* Clients depend on this, not on the concrete class.
*/
public interface DatabaseConnection {
void connect();
String executeQuery(String sql);
void disconnect();
}