/** * Gets the flag indicating the instantiation strategy of the specification. * * @return {@code true} if the specification is specifying a singleton; * {@code false} if not. * * @see PropertyOverwriteConstraintException * @deprecated Replaced by {@link #getScope() getScope() == SCOPE_SINGLETON}. */ public boolean isSingleton() { return this.getScope() == SCOPE_SINGLETON; }
classLoader, specification.getScope(), implementation.getIdentifier(), implementation.getModelVersion(),
private void updateSpecificationReferences() { for ( int m = this.modules.size() - 1; m >= 0; m-- ) { final Module module = this.modules.getModule( m ); for ( int s = module.getSpecifications().size() - 1; s >= 0; s-- ) { final Specification spec = module.getSpecifications(). getSpecification( s ); final Collection references = (Collection) this.specifications.get( spec.getIdentifier() ); assert references != null : "Expected specification meta-data."; for ( final Iterator it = references.iterator(); it.hasNext(); ) { final Specification reference = (Specification) it.next(); reference.setModuleName( module.getName() ); if ( !reference.equals( spec ) ) { reference.setDocumentation( spec.getDocumentation() ); reference.setMultiplicity( spec.getMultiplicity() ); reference.setProperties( spec.getProperties() ); reference.setScope( spec.getScope() ); reference.setStateless( spec.isStateless() ); reference.setVendor( spec.getVendor() ); reference.setModelVersion( spec.getModelVersion() ); } } } } }
classLoader, dependency.getSpecification().getScope(), dependency.getImplementation().getIdentifier(), dependency.getImplementation().getModelVersion(),
if ( dep.getSpecification().getScope() != Specification.SCOPE_MULTITON && dep.getDeclaredProperties().size() > 0 )