org.apache.felix.scr.annotations.Deactivate Java Examples

The following examples show how to use org.apache.felix.scr.annotations.Deactivate. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LongSessionEventListener.java    From AEM-Rules-for-SonarQube with Apache License 2.0 6 votes vote down vote up
@Deactivate
public void deactivate(final Map<String, String> config) throws RepositoryException {
    try {
        final ObservationManager observationManager = observationSession.getWorkspace().getObservationManager();

        if (observationManager != null) {
            observationManager.removeEventListener(this);
        }
    } finally {
        if (observationSession != null) {
            observationSession.logout();
        }
        if (resolver != null) {
            resolver.close();
        }
    }
}
 
Example #2
Source File: ConnectorScheduler.java    From sling-samples with Apache License 2.0 5 votes vote down vote up
@Deactivate
public void deactivate() throws InterruptedException {
	if (executionThread != null) {
		running = false;
		executionThread.join(WAITING_TIME_LIMIT_BEFORE_TERMINATION);
	}
}
 
Example #3
Source File: NetworkManager.java    From onos-byon with Apache License 2.0 5 votes vote down vote up
@Deactivate
protected void deactivate() {
    /*
     * TODO Lab 6: Remove delegate and event sink
     *
     * 1. Remove the event class from the event dispatcher using eventDispatcher.removeSink()
     * 2. Unset the delegate from the store
     */
    log.info("Stopped");
}
 
Example #4
Source File: DistributedNetworkStore.java    From onos-byon with Apache License 2.0 5 votes vote down vote up
@Deactivate
public void deactivate() {
    /*
     * TODO Lab 6: Remove the listener from the networks map
     *
     * Use networks.removeListener()
     */
    log.info("Stopped");
}
 
Example #5
Source File: BlogServiceImpl.java    From publick-sling-blog with Apache License 2.0 5 votes vote down vote up
/**
 * Deactivate Service.
 *
 * @param ctx
 */
@Deactivate
protected void deactivate(ComponentContext ctx) {
    if (session != null && session.isLive()) {
        session.logout();
        session = null;
    }
}
 
Example #6
Source File: LongSessionService.java    From AEM-Rules-for-SonarQube with Apache License 2.0 5 votes vote down vote up
@Deactivate
protected void deactivate() {
    if (registration != null) {
        registration.unregister();
        registration = null;
    }
    try {
        unregisterObservation();
    } finally {
        if (resolver != null) {
            resolver.close();
            resolver = null;
        }
    }
}
 
Example #7
Source File: LongSessionEventListenerError.java    From AEM-Rules-for-SonarQube with Apache License 2.0 5 votes vote down vote up
@Deactivate
public void deactivate(final Map<String, String> config) throws RepositoryException {
    final ObservationManager observationManager = observationSession.getWorkspace().getObservationManager();

    if (observationManager != null) {
        observationManager.removeEventListener(this);
    }
}
 
Example #8
Source File: LongResourceResolverEvenListenerError.java    From AEM-Rules-for-SonarQube with Apache License 2.0 5 votes vote down vote up
@Deactivate
public void deactivate(final Map<String, String> config) throws RepositoryException {
    try {
        final Session session = resolver.adaptTo(Session.class);
    } finally {
    }
}
 
Example #9
Source File: ActiveBundleHealthCheck.java    From aem-healthcheck with Apache License 2.0 4 votes vote down vote up
@Deactivate
protected void deactivate() {
    bundleContext = null;
}
 
Example #10
Source File: ManagedKubernetesClient.java    From kubernetes-client with Apache License 2.0 4 votes vote down vote up
@Deactivate
public void deactivate() {
  delegate.close();
}
 
Example #11
Source File: HealthCheckExecutorServlet.java    From aem-healthcheck with Apache License 2.0 4 votes vote down vote up
@Deactivate
protected void deactivate() {
    logger.debug("Stopping HealthCheckExecutorServlet");
}
 
Example #12
Source File: SampleFelixServiceImpl.java    From aem-osgi-annotation-demo with Apache License 2.0 4 votes vote down vote up
@Deactivate
protected void deactivate() {
}
 
Example #13
Source File: AkismetServiceImpl.java    From publick-sling-blog with Apache License 2.0 2 votes vote down vote up
/**
 * Service Deactivation.
 *
 * @param ctx The current component context.
 */
@Deactivate
protected void deactivate(ComponentContext ctx) {
}
 
Example #14
Source File: EmailServiceImpl.java    From publick-sling-blog with Apache License 2.0 2 votes vote down vote up
/**
 * Service Deactivation.
 *
 * @param ctx The current component context.
 */
@Deactivate
protected void deactivate(ComponentContext ctx) {
}
 
Example #15
Source File: LinkRewriterServiceImpl.java    From publick-sling-blog with Apache License 2.0 2 votes vote down vote up
/**
 * Service Deactivation.
 *
 * @param ctx The current component context.
 */
@Deactivate
protected void deactivate(ComponentContext ctx) {
}
 
Example #16
Source File: RecaptchaServiceImpl.java    From publick-sling-blog with Apache License 2.0 2 votes vote down vote up
/**
 * Service Deactivation.
 *
 * @param ctx The current component context.
 */
@Deactivate
protected void deactivate(ComponentContext ctx) {
}
 
Example #17
Source File: HttpServiceImpl.java    From publick-sling-blog with Apache License 2.0 2 votes vote down vote up
/**
 * Service Deactivation.
 *
 * @param ctx The current component context.
 */
@Deactivate
protected void deactivate(ComponentContext ctx) {
}
 
Example #18
Source File: FileUploadServiceImpl.java    From publick-sling-blog with Apache License 2.0 2 votes vote down vote up
/**
 * Deactivate service.
 * @param ctx
 */
@Deactivate
protected void deactivate(ComponentContext ctx) {
}