BackgroundScanEE

runWhenScanFinished

"runWhenScanFinished" usages in important J2EE modules:

j2ee.metadata.model.support/src/org/netbeans/modules/j2ee/metadata/model/api/support/annotation/AnnotationModelHelper.java

  • wraps runWhenScanFinished as a new API method AnnotationModelHelper.runJavaSourceTaskWhenScanFinished - see usages of this method below

j2ee.ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ejb/wizard/jpa/dao/EjbFacadeWizardIterator.java

  • uses JavaSource.runModificationTask to create base abstract class (AbstractFacade) and then does bunch of other things and later calls JavaSource.runWhenScanFinished with "CompilationController.toPhase(Phase.ELEMENTS_RESOLVED);" after which another JavaSource.runModificationTask is run on the abstract facade class

j2ee.ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ui/logicalview/ejb/action/EJBActionGroup.java

  • enable action(s) if selected node represents an EJB with certain criteria

websvc.core/src/org/netbeans/modules/websvc/editor/completion/WSCompletionProvider.java

  • CompletionProvider implementation

websvc.rest/src/org/netbeans/modules/websvc/rest/wizard/fromdb/EjbFacadeGenerator.java

  • the same case as j2ee.ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ejb/wizard/jpa/dao/EjbFacadeWizardIterator.java

"parseWhenScanFinished" usages in J2EE modules:

j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/editor/completion/JPACodeCompletionProvider.java

  • AsyncCompletionQuery implementation

web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/InjectCompositeComponent.java

  • instantiation of some templates where parseWhenScanFinished is used to make sure previously created files were parsed

"AnnotationModelHelper.runJavaSourceTaskWhenScanFinished" usages: (AnnotationModelHelper.runJavaSourceTaskWhenScanFinished method wraps and calls runWhenScanFinished)

  • all occurances below implements org.netbeans.modules.j2ee.metadata.model.spi.MetadataModelImplementation.runReadActionWhenReady method by delagating to AnnotationModelHelper.runJavaSourceTaskWhenScanFinished

j2ee.dd/src/org/netbeans/modules/j2ee/dd/impl/ejb/annotation/EjbJarMetadataModelImpl.java

j2ee.dd/src/org/netbeans/modules/j2ee/dd/impl/web/metadata/WebAppMetadataModelImpl.java

j2ee.persistenceapi/src/org/netbeans/modules/j2ee/persistenceapi/metadata/orm/annotation/EntityMappingsMetadataModelImpl.java

spring.beans/src/org/netbeans/modules/spring/beans/model/impl/SpringModelImplementation.java

web.beans/src/org/netbeans/modules/web/beans/impl/model/WebBeansModelImplementation.java

web.jsf/src/org/netbeans/modules/web/jsf/impl/metamodel/JsfModelImplementation.java

websvc.restapi/src/org/netbeans/modules/websvc/rest/model/impl/RestApplicationMetadataModelImpl.java

websvc.restapi/src/org/netbeans/modules/websvc/rest/model/impl/RestServicesMetadataModelImpl.java

j2ee.dd.webservice/src/org/netbeans/modules/j2ee/dd/impl/webservices/annotation/WebservicesMetadataModelImpl.java

j2ee.dd/src/org/netbeans/modules/j2ee/dd/impl/client/annotation/AppClientMetadataModelImpl.java


Usages of MetadataModel.runReadActionWhenReady:

(MetadataModel.runReadActionWhenReady method is API for spi.MetadataModelImplementation.runReadActionWhenReady)

j2ee.api.ejbmodule/src/org/netbeans/modules/j2ee/ejbjar/project/ui/EjbContainerChildren.java

  • listens on list of project's EJBs and create Node children from EJBs

j2ee.common/src/org/netbeans/modules/j2ee/common/MetadataModelReadHelper.java

  • helper utility class to run metamodel actions on background; see below for usages of this class by other code

j2ee.earproject/src/org/netbeans/modules/j2ee/earproject/model/ApplicationMetadataModelImpl.java

  • not relevant

j2ee.ejbcore/src/org/netbeans/modules/j2ee/ejbcore/action/AbstractMethodGenerator.java

  • used by BusinessMethodGenerator, HomeMethodGenerator, etc support to retrieve interface classes of a given EJB

j2ee.ejbcore/src/org/netbeans/modules/j2ee/ejbcore/ejb/wizard/jpa/dao/EjbFacadeWizardIterator.java

  • retrieve all entity classes in given project before wizard can continue

j2ee.jpa.verification/src/org/netbeans/modules/j2ee/jpa/verification/JPAProblemFinder.java

  • support class to locate all problems in a JPA class according to set of rules (this should be reimplementd as Hints)

j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/wizard/EntityClosure.java

  • some crap code which set wizard's validity to false if scanning has not finished

form.j2ee/src/org/netbeans/modules/form/j2ee/J2EEUtils.java

  • finds entity from meta model for given SQL table name
  • retrieves properties of given entity and given columns name

form.j2ee/src/org/netbeans/modules/form/j2ee/wizard/MasterDetailWizard.java

  • blocks everything until metamodel can be accessed
  • wizard's instantiate method needs metamodel

web.jsf/src/org/netbeans/modules/web/jsf/JSFConfigUtilities.java

  • needs JSF model and checks for presence of a predefined class in JSF meta model (it is utility method)

web.project/src/org/netbeans/modules/web/project/WebProject.java

  • adds a listener on project's EJBs

web.project/src/org/netbeans/modules/web/project/api/WebProjectUtilities.java

  • utility method to check if web project has some MessageDriven Bean or Remote Interface one

websvc.core/src/org/netbeans/modules/websvc/core/jaxws/projects/JavaEEWSOpenHook.java

  • tbd

websvc.core/src/org/netbeans/modules/websvc/core/jaxws/projects/JavaEEWSOpenHook.java

  • tbd

websvc.rest/src/org/netbeans/modules/websvc/rest/wizard/Util.java

  • tbd

maven.j2ee/src/org/netbeans/modules/maven/j2ee/ear/model/ApplicationMetadataModelImpl.java

  • tbd

maven.jaxws/src/org/netbeans/modules/maven/jaxws/MavenJaxWsSupportProvider.java

  • tbd

maven.jaxws/src/org/netbeans/modules/maven/jaxws/MavenJaxWsSupportProvider.java

  • tbd

Usages of "MetadataModelReadHelper":

j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/unit/AddEntityPanel.java

  • read entities on the background from meta model (once the scanning is finished) and show them in UI

j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/wizard/EntityClosure.java

  • read metamodel stuff on background

j2ee.persistence/src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/JavaPersistenceGenerator.java

  • read metamodel stuff on background

"runWhenScanFinished" usages in LESS important J2EE modules:

groovy.support/src/org/netbeans/modules/groovy/support/GroovyActionProvider.java

  • tbd

j2ee.clientproject/src/org/netbeans/modules/j2ee/clientproject/MainClassUpdater.java

  • tbd

spring.beans/src/org/netbeans/modules/spring/java/JavaUtils.java

  • tbd
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo