private void scopes( int parent, Dependency child ) { scopeCtx.parentScope = ( parent > 0 ) ? parentScopes.get( parent - 1 ) : null; scopeCtx.derivedScope = scopeCtx.childScope = scope( child ); }
private void scopes( int parent, Dependency child ) { scopeCtx.parentScope = ( parent > 0 ) ? parentScopes.get( parent - 1 ) : null; scopeCtx.derivedScope = scopeCtx.childScope = scope( child ); }
private String deriveScope( DependencyNode node, Object conflictId ) throws RepositoryException { if ( ( node.getManagedBits() & DependencyNode.MANAGED_SCOPE ) != 0 || ( conflictId != null && resolvedIds.containsKey( conflictId ) ) ) { return scope( node.getDependency() ); } int depth = parentNodes.size(); scopes( depth, node.getDependency() ); if ( depth > 0 ) { scopeDeriver.deriveScope( scopeCtx ); } return scopeCtx.derivedScope; }
private String deriveScope( DependencyNode node, Object conflictId ) throws RepositoryException { if ( ( node.getManagedBits() & DependencyNode.MANAGED_SCOPE ) != 0 || ( conflictId != null && resolvedIds.containsKey( conflictId ) ) ) { return scope( node.getDependency() ); } int depth = parentNodes.size(); scopes( depth, node.getDependency() ); if ( depth > 0 ) { scopeDeriver.deriveScope( scopeCtx ); } return scopeCtx.derivedScope; }