Examples of DeploymentScanner


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

                    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

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

            context.addStep(new OperationStepHandler() {
                public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
                    final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
                    final String name = address.getLastElement().getValue();
                    final ServiceController<?> controller = context.getServiceRegistry(false).getService(DeploymentScannerService.getServiceName(name));
                    DeploymentScanner scanner = null;
                    if (controller == null) {
                        throw new OperationFailedException(new ModelNode().set("scanner not configured"));
                    } else {
                        scanner = (DeploymentScanner) controller.getValue();
                        updateScanner(scanner, newValue);
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

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

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