bachelor-thesis/chapters/thesis/appendix05_LoggerFactory.java
2024-09-08 00:33:09 +02:00

15 lines
536 B
Java

public class VdlLoggerFactory extends ViewDeclarationLanguageFactory {
private final ViewDeclarationLanguageFactory wrapped_;
public VdlLoggerFactory(ViewDeclarationLanguageFactory viewDeclarationLanguage) {
wrapped_ = viewDeclarationLanguage;
}
@Override
public ViewDeclarationLanguage getViewDeclarationLanguage(String viewId) {
return new VdlLogger(wrapped_.getViewDeclarationLanguage(viewId));
}
@Override
public ViewDeclarationLanguageFactory getWrapped() { return wrapped_; }
}