Package org.jboss.as.server.deployment.scanner.api

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


                    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

    }

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

    }

    /** {@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

    /**
     * {@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

    /**
     * {@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

                            .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

    }

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

    }

    /** {@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

                    final ServiceController<?> controller = context.getServiceRegistry().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.startScanner();
                            resultHandler.handleResultComplete();
                        } catch (Throwable t) {
                            throw new OperationFailedException(getFailureResult(t));
                        }
                    }
View Full Code Here

TOP

Related Classes of org.jboss.as.server.deployment.scanner.api.DeploymentScanner

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.