protected Implementation getImplementation() { return ModelFactory.getModel().getModules(). getImplementation( DTAUSDisk.class.getName() ); }
protected Implementation getImplementation() { if ( this.implementation == null ) { this.implementation = ModelFactory.getModel().getModules(). getImplementation( DefaultPhysicalFileFactory.class.getName() ); } return this.implementation; }
protected Implementation getImplementation() { return ModelFactory.getModel().getModules().getImplementation( DTAUSTape.class.getName() ); }
private Implementation getImplementation( final Object object ) { MissingImplementationException exception = null; Implementation implementation = null; Class clazz = object.getClass(); do { try { implementation = ModelFactory.getModel().getModules(). getImplementation( clazz.getName() ); break; } catch ( final MissingImplementationException e ) { if ( exception == null ) { exception = e; } } } while ( ( clazz = clazz.getSuperclass() ) != null ); if ( implementation == null ) { throw exception; } return implementation; }
public JFileChooser getSaveAsFileChooser() { if(this.saveAsFileChooser == null) { this.saveAsFileChooser = new JFileChooser(); this.saveAsFileChooser.setAcceptAllFileFilterUsed(false); this.saveAsFileChooser.setMultiSelectionEnabled(false); final Implementations formatters = ModelFactory.getModel().getModules(). getSpecification(PhysicalFileFormatter.class.getName()). getImplementations(); for(int i = formatters.size() - 1; i >= 0; i--) { final PhysicalFileFormatter formatter = (PhysicalFileFormatter) ContainerFactory. getContainer().getImplementation( PhysicalFileFormatter.class, formatters.getImplementation(i).getName()); this.saveAsFileChooser.addChoosableFileFilter( new PhysicalFileFormatterFileFilter(formatter)); } } return this.saveAsFileChooser; }
/** * Resolves application messages for a given exception by querying any * available {@code ExceptionMessageResolver} implementation stopping at the * first implementation not returning {@code null}. * * @param exception The exception to resolve application messages for. * * @throws NullPointerException if {@code exception} is {@code null}. */ private Message[] resolveMessages( final Exception exception ) { if ( exception == null ) { throw new NullPointerException( "exception" ); } Message[] messages = null; final Specification spec = ModelFactory.getModel().getModules(). getSpecification( ExceptionMessageResolver.class.getName() ); final Implementation[] resolvers = spec.getImplementations(). getImplementations(); for ( int i = resolvers.length - 1; i >= 0 && messages == null; i-- ) { final ExceptionMessageResolver resolver = (ExceptionMessageResolver) ContainerFactory.getContainer(). getObject( ExceptionMessageResolver.class, resolvers[i].getName() ); messages = resolver.resolve( exception ); } return messages; }
"TaskEventSource"); if(ModelFactory.getModel().getModules(). getImplementation(Editor.class.getName()). getDependencies().getDependency("TaskEventSource").
"BankleitzahlenVerzeichnis"); if(ModelFactory.getModel().getModules(). getImplementation(BankleitzahlenVerzeichnisDialog.class.getName()). getDependencies().getDependency("BankleitzahlenVerzeichnis").
"BankleitzahlenVerzeichnis"); if(ModelFactory.getModel().getModules(). getImplementation(HeaderDialog.class.getName()). getDependencies().getDependency("BankleitzahlenVerzeichnis").
"PhysicalFileFactory"); if(ModelFactory.getModel().getModules(). getImplementation(DefaultPhysicalFileGenerator.class.getName()). getDependencies().getDependency("PhysicalFileFactory").
"UserInterface"); if(ModelFactory.getModel().getModules(). getImplementation(Editor.class.getName()). getDependencies().getDependency("UserInterface").
"Logger"); if(ModelFactory.getModel().getModules(). getImplementation(JaxbSequenceDirectory.class.getName()). getDependencies().getDependency("Logger").
"Application"); if(ModelFactory.getModel().getModules(). getImplementation(DefaultPhysicalFileGenerator.class.getName()). getDependencies().getDependency("Application").
"TextschluesselVerzeichnis"); if(ModelFactory.getModel().getModules(). getImplementation(GeneratorDialog.class.getName()). getDependencies().getDependency("TextschluesselVerzeichnis").
"CurrencyDirectory"); if(ModelFactory.getModel().getModules(). getImplementation(HeaderDialog.class.getName()). getDependencies().getDependency("CurrencyDirectory").
"TaskMonitor"); if(ModelFactory.getModel().getModules(). getImplementation(PhysicalFileFrame.class.getName()). getDependencies().getDependency("TaskMonitor").
"Logger"); if(ModelFactory.getModel().getModules(). getImplementation(Editor.class.getName()). getDependencies().getDependency("Logger").
"IconSet"); if(ModelFactory.getModel().getModules(). getImplementation(GeneratorDialog.class.getName()). getDependencies().getDependency("IconSet").
"MemoryManager"); if(ModelFactory.getModel().getModules(). getImplementation(JaxbSequenceDirectory.class.getName()). getDependencies().getDependency("MemoryManager").
"BankleitzahlenVerzeichnis"); if(ModelFactory.getModel().getModules(). getImplementation(TransactionDialog.class.getName()). getDependencies().getDependency("BankleitzahlenVerzeichnis").