Examples of DeploymentScanner


Examples of org.jboss.as.deployment.scanner.DeploymentScanner

        final ServiceController<?> controller = context.getServiceContainer().getService(DeploymentScannerService.getServiceName(name));
        if(controller == null) {
            resultHandler.handleFailure(notConfigured(), param);
        } else {
            try {
                final DeploymentScanner scanner = (DeploymentScanner) controller.getValue();
                scanner.startScanner();
                resultHandler.handleSuccess(null, param);
            } catch (Throwable t) {
                resultHandler.handleFailure(t, param);
            }
        }
View Full Code Here

Examples of org.jboss.as.deployment.scanner.DeploymentScanner

        final ServiceController<?> controller = context.getServiceContainer().getService(DeploymentScannerService.getServiceName(path));
        if(controller == null) {
            resultHandler.handleFailure(notConfigured(), param);
        } else {
            try {
                final DeploymentScanner scanner = (DeploymentScanner) controller.getValue();
                scanner.stopScanner();
                resultHandler.handleSuccess(null, param);
            } catch (Throwable t) {
                resultHandler.handleFailure(t, param);
            }
        }
View Full Code Here

Examples of org.jboss.as.server.deployment.scanner.api.DeploymentScanner

        final String name = address.getLastElement().getValue();
        final ServiceController<?> controller = context.getServiceRegistry(false).getService(DeploymentScannerService.getServiceName(name));
        if (controller == null) {
            throw new OperationFailedException(new ModelNode().set(MESSAGES.scannerNotConfigured()));
        } else {
            DeploymentScanner scanner = (DeploymentScanner) controller.getValue();
            updateScanner(scanner, newValue);
            handbackHolder.setHandback(scanner);
        }

        return false;
View Full Code Here

Examples of org.jboss.as.server.deployment.scanner.api.DeploymentScanner

                    final ServiceController<?> controller = context.getServiceRegistry()
                            .getService(DeploymentScannerService.getServiceName(name));
                    if (controller == null) {
                        throw new OperationFailedException(new ModelNode().set("scanner not configured"));
                    } else {
                        final DeploymentScanner scanner = (DeploymentScanner) controller.getValue();

                        updateScanner(scanner, newValue);

                        resultHandler.handleResultComplete();
                    }
View Full Code Here

Examples of org.jboss.as.server.deployment.scanner.api.DeploymentScanner

    }

    /** {@inheritDoc} */
    @Override
    public synchronized void stop(StopContext context) {
        final DeploymentScanner scanner = this.scanner;
        this.scanner = null;
        scanner.stopScanner();
    }
View Full Code Here

Examples of org.jboss.as.server.deployment.scanner.api.DeploymentScanner

    }

    /** {@inheritDoc} */
    @Override
    public synchronized DeploymentScanner getValue() throws IllegalStateException {
        final DeploymentScanner scanner = this.scanner;
        if(scanner == null) {
            throw new IllegalStateException();
        }
        return scanner;
    }
View Full Code Here

Examples of org.jboss.as.server.deployment.scanner.api.DeploymentScanner

    /**
     * {@inheritDoc}
     */
    @Override
    public synchronized void stop(StopContext context) {
        final DeploymentScanner scanner = this.scanner;
        this.scanner = null;
        scanner.stopScanner();
        scheduledExecutorValue.getValue().shutdown();
    }
View Full Code Here

Examples of org.jboss.as.server.deployment.scanner.api.DeploymentScanner

    /**
     * {@inheritDoc}
     */
    @Override
    public synchronized DeploymentScanner getValue() throws IllegalStateException {
        final DeploymentScanner scanner = this.scanner;
        if (scanner == null) {
            throw new IllegalStateException();
        }
        return scanner;
    }
View Full Code Here

Examples of org.jboss.as.server.deployment.scanner.api.DeploymentScanner

                            .getService(DeploymentScannerService.getServiceName(name));
                    if (controller == null) {
                        throw new OperationFailedException(new ModelNode().set("scanner not configured"));
                    } else {
                        try {
                            final DeploymentScanner scanner = (DeploymentScanner) controller.getValue();
                            scanner.stopScanner();
                            resultHandler.handleResultComplete();
                        } catch (Throwable t) {
                            throw new OperationFailedException(getFailureResult(t));
                        }
                    }
View Full Code Here

Examples of org.jboss.as.server.deployment.scanner.api.DeploymentScanner

    }

    /** {@inheritDoc} */
    @Override
    public synchronized void stop(StopContext context) {
        final DeploymentScanner scanner = this.scanner;
        this.scanner = null;
        scanner.stopScanner();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.