org.jvnet.hk2.component.classmodel
Interface ClassPathAdvisor

All Superinterfaces:
FileFilter
All Known Implementing Classes:
FileCachingClassPathAdvisor

Deprecated.

@Deprecated
public interface ClassPathAdvisor
extends FileFilter

Assists in the creation of the habitat via class-model introspection. Implementations of this contract can fulfill two separate but related actions.

1. It can prune the classpath used to construct the habitat based on some filter criteria.

2. It can be provided feedback by the introspection machinery regarding the URIs in the classpath that were significant during creation of the habitat that can be used by the implementation to fine-tune future runs.

Both activities above are important for building a caching scheme for example, to make class-model introspection more performant over repeated runs.

Author:
Jeff Trent

Method Summary
 void finishing(Set<URI> significant, Set<URI> insignificant)
          Deprecated. Called at the completion of class-model habitat creation
 void starting(ClassPath inhabitantsClassPath)
          Deprecated. Called at the start of class-model habitat creation
 
Methods inherited from interface java.io.FileFilter
accept
 

Method Detail

starting

void starting(ClassPath inhabitantsClassPath)
Deprecated. 
Called at the start of class-model habitat creation

Parameters:
inhabitantsClassPath - the full classpath for locating class artifacts

finishing

void finishing(Set<URI> significant,
               Set<URI> insignificant)
Deprecated. 
Called at the completion of class-model habitat creation

Parameters:
significant - the set of code sources that were significant in that they contributed to logical habitat creation
insignificant - the set of code sources that were not significant in creation of the logical habitat


Copyright © 2013 Oracle Corporation. All Rights Reserved.