bachelor-thesis/chapters/thesis/appendix05_LoggerFactory.java

16 lines
536 B
Java
Raw Normal View History

2024-09-08 00:33:09 +02:00
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_; }
}