this.getImplementations().getImplementation( i );
value.getImplementation( i ).getName(), value.getImplementation( i ) ) != null ) value.getImplementation( i ).getName() );
/** * Gets a collection of all implementations of all modules held by the * instance. * * @return a reference to all implementations of all modules held by the * instance. */ public Implementations getImplementations() { if ( this.implementations == null ) { this.implementations = new Implementations(); } final Collection col = new ArrayList( this.implementations.size() ); for ( int i = this.size() - 1; i >= 0; i-- ) { final Module mod = this.getModule( i ); for ( int j = mod.getImplementations().size() - 1; j >= 0; j-- ) { col.add( mod.getImplementations().getImplementation( j ) ); } } this.implementations.setImplementations( (Implementation[]) col.toArray( new Implementation[ col.size() ] ) ); return this.implementations; }
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; }
for ( int j = impls.size() - 1; j >= 0; j-- ) impl = impls.getImplementation( j ); if ( this.implementationMap.put( impl.getIdentifier(), impl ) != null )
mod.getImplementations().getImplementation( j );
impl = spec.getImplementations().getImplementation( 0 ); instance = new Instance( classLoader, spec.getScope(), i-- ) impl = spec.getImplementations().getImplementation( i ); instance = new Instance( classLoader, spec.getScope(),
getImplementation( 0 ); getImplementation( i );