Package org.jboss.as.server.moduleservice

Examples of org.jboss.as.server.moduleservice.ServiceModuleLoader


            // boot module loader
            final ModuleLoader moduleLoader = Module.getBootModuleLoader();

            // plugin module loader so that the implicit plugin module can be found later by WSRP admin
            final ServiceModuleLoader pluginModuleLoader = du.getAttachment(Attachments.SERVICE_MODULE_LOADER);

            // create a dependency on this module to be added to WSRP admin
            final ModuleIdentifier moduleIdentifier = du.getAttachment(Attachments.MODULE_IDENTIFIER);
            synchronized (this) {
                loadedPluginsAsDependencies.add(new ModuleDependency(pluginModuleLoader, moduleIdentifier, false, false, false, false));
View Full Code Here


            // add gatein deployment modules cross-dependencies
            ModuleIdentifier moduleId = du.getAttachment(Attachments.MODULE_IDENTIFIER);

            if (GateInConfiguration.isGateInArchive(du)) {
                final GateInConfiguration config = du.getAttachment(GateInConfigurationKey.KEY);
                final ServiceModuleLoader deploymentModuleLoader = du.getAttachment(Attachments.SERVICE_MODULE_LOADER);

                if (!moduleId.equals(config.getGateInEarModule())) {
                    moduleSpec.addSystemDependency(new ModuleDependency(deploymentModuleLoader,
                        config.getGateInEarModule(), false, false, false, false));
                }
View Full Code Here

    }

    protected void scan(final DeploymentUnit du, final ClassLoader classLoader, final ResteasyDeploymentData resteasyDeploymentData, final ModuleIndexService moduleIndexService, boolean webDeployment)
            throws DeploymentUnitProcessingException, ModuleLoadException {

        ServiceModuleLoader moduleLoader = du.getAttachment(Attachments.SERVICE_MODULE_LOADER);

        final List<CompositeIndex> indexes = new ArrayList<CompositeIndex>();
        if (webDeployment) {
            for (ModuleIdentifier moduleIdentifier : JAXRS_MODULES_TO_SCAN) {
                final Module resteasy = moduleLoader.loadModule(moduleIdentifier);
                indexes.add(moduleIndexService.getIndex(resteasy));
            }
        }

View Full Code Here

    @Override
    public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
        final ResourceRoot resourceRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
        final ServiceModuleLoader moduleLoader = deploymentUnit.getAttachment(Attachments.SERVICE_MODULE_LOADER);

        VirtualFile deploymentFile = null;
        for (String loc : DEPLOYMENT_STRUCTURE_DESCRIPTOR_LOCATIONS) {
            VirtualFile file = resourceRoot.getRoot().getChild(loc);
            if (file.exists()) {
View Full Code Here

     * @throws DeploymentUnitProcessingException
     */
    public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
        final ModuleSpecification moduleSpecification = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION);
        final ServiceModuleLoader deploymentModuleLoader = deploymentUnit.getAttachment(Attachments.SERVICE_MODULE_LOADER);
        final List<ResourceRoot> allResourceRoots = DeploymentUtils.allResourceRoots(deploymentUnit);

        for (final ResourceRoot resourceRoot : allResourceRoots) {
            final Manifest manifest = resourceRoot.getAttachment(Attachments.MANIFEST);
            if (manifest == null)
View Full Code Here

     * @param phaseContext the deployment unit context
     * @throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
     */
    public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
        final ServiceModuleLoader deploymentModuleLoader = deploymentUnit.getAttachment(Attachments.SERVICE_MODULE_LOADER);
        final List<ResourceRoot> allResourceRoots = DeploymentUtils.allResourceRoots(deploymentUnit);

        for (final ResourceRoot resourceRoot : allResourceRoots) {
            final Manifest manifest = resourceRoot.getAttachment(Attachments.MANIFEST);
            if (manifest == null)
View Full Code Here

    @Override
    public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
        final ResourceRoot resourceRoot = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.DEPLOYMENT_ROOT);
        final ServiceModuleLoader moduleLoader = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.SERVICE_MODULE_LOADER);

        VirtualFile descriptorFile = null;
        for (final String loc : EJB_CLIENT_DESCRIPTOR_LOCATIONS) {
            final VirtualFile file = resourceRoot.getRoot().getChild(loc);
            if (file.exists()) {
View Full Code Here

     * @param phaseContext the deployment unit context
     * @throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
     */
    public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
        final ServiceModuleLoader deploymentModuleLoader = deploymentUnit.getAttachment(Attachments.SERVICE_MODULE_LOADER);
        final List<ResourceRoot> allResourceRoots = DeploymentUtils.allResourceRoots(deploymentUnit);

        for (final ResourceRoot resourceRoot : allResourceRoots) {
            final Manifest manifest = resourceRoot.getAttachment(Attachments.MANIFEST);
            if (manifest == null)
View Full Code Here

    @Override
    public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
        final ResourceRoot resourceRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);
        final ServiceModuleLoader moduleLoader = deploymentUnit.getAttachment(Attachments.SERVICE_MODULE_LOADER);

        VirtualFile deploymentFile = null;
        for (String loc : DEPLOYMENT_STRUCTURE_DESCRIPTOR_LOCATIONS) {
            VirtualFile file = resourceRoot.getRoot().getChild(loc);
            if (file.exists()) {
View Full Code Here

            // add gatein deployment modules cross-dependencies
            ModuleIdentifier moduleId = du.getAttachment(Attachments.MODULE_IDENTIFIER);

            if (GateInConfiguration.isGateInArchive(du)) {
                final GateInConfiguration config = du.getAttachment(GateInConfigurationKey.KEY);
                final ServiceModuleLoader deploymentModuleLoader = du.getAttachment(Attachments.SERVICE_MODULE_LOADER);

                if (!moduleId.equals(config.getGateInEarModule())) {
                    if (!containsDependency(dependencies, config.getGateInEarModule())) {
                        du.addToAttachmentList(Attachments.MANIFEST_DEPENDENCIES, new ModuleDependency(deploymentModuleLoader,
                                config.getGateInEarModule(), false, false, false, false));
View Full Code Here

TOP

Related Classes of org.jboss.as.server.moduleservice.ServiceModuleLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.