Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.model
Class DefaultComponent

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
All Implemented Interfaces:
Adaptable, Component, Extensible
Direct Known Subclasses:
ActionService, AjaxProxyComponent, AnnotationsComponent, AnnotationsRepositoryComponent, AutomationComponent, AutomationServerComponent, BatchManagerComponent, BlobHolderAdapterComponent, CommandLineExecutorComponent, CommentService, ComputedGroupsServiceImpl, ConnectClientComponent, ContentTemplateServiceImpl, ContentViewServiceImpl, ContributionPersistenceComponent, ConversionServiceImpl, CoreEventListenerServiceImpl, CoreManagementComponent, CoreService, CounterManagerImpl, DataSourceComponent, DefaultEventService, DeploymentService, DirectoryServiceImpl, DirectoryTreeService, DirectoryUIManagerImpl, DocumentAdapterService, DocumentsListsService, DocumentViewCodecService, DublinCoreStorageService, EventManagerComponent, EventServiceComponent, ExceptionHandlingComponent, FileManagerService, FreemarkerComponent, GF3Component, HtmlEditorPluginServiceImpl, HtmlSanitizerServiceImpl, ImagingComponent, IOManagerComponent, JbpmComponent, JbpmTaskListServiceImpl, JettyComponent, JtaActivator, LDAPDirectoryFactory, LibrarySelectorService, LifeCycleServiceImpl, LocalConfigurationServiceImpl, LocationManagerService, LoginComponent, LoginPluginRegistry, MailServiceImpl, ManagedComponent, MetricComponent, MimetypeRegistryService, MultiDirectoryFactory, NavTreeService, NotificationService, NXAuditEventsService, OAuthConsumerRegistryImpl, OAuthServerKeyManagerImpl, OAuthServiceProviderRegistryImpl, OAuthTokenStoreImpl, OOoManagerComponent, PackageUpdateComponent, PageProviderServiceImpl, PathSegmentComponent, PersistenceComponent, PictureConfigurationService, PictureTilingComponent, PlacefulServiceImpl, PlatformManagementComponent, PlatformService, PluggableAuthenticationService, PluggableRestletService, PreviewAdapterManagerComponent, PublisherServiceImpl, QueryMakerServiceImpl, QueryModelService, RelationService, ReloadableComponent, ReloadComponent, RemotingService, RenderingServiceImpl, RepositoryManagerImpl, RepositoryService, RequestControllerService, ResourcePublisherService, ResultsProviderService, SchedulerRegistryService, ScriptingComponent, SeamRemotingJSBuilderComponent, SearchUIConfigService, SecurityService, ServerLocatorService, Service, ServiceManagement, ServletRegistryComponent, SQLDirectoryFactory, StreamingService, TagServiceImpl, ThemeService, ThemeStylingServiceImpl, TrashManagementService, TrashServiceImpl, TreeManagerImpl, TypeService, TypeService, UIDGeneratorService, UIPermissionService, URLServiceComponent, UserPreferencesServiceImpl, UserService, UserWorkspaceServiceImplComponent, VersioningComponent, VersioningManagerImpl, WebAnnotationConfigurationServiceImpl, WebEngineComponent, WebLayoutManagerImpl, WSRemotingSessionManagerImpl

public class DefaultComponent
extends Object
implements Component, Adaptable

Empty implementation for a component.

Author:
Bogdan Stefanescu

Constructor Summary
DefaultComponent()
           
 
Method Summary
 void activate(ComponentContext context)
          Activates the component.
 void applicationStarted(ComponentContext context)
          Notify the component that Nuxeo Framework finished starting all Nuxeo bundles.
 void deactivate(ComponentContext context)
          Deactivates the component.
<T> T
getAdapter(Class<T> adapter)
          Returns an object which is an instance of the given class associated with this object.
 void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
           
 void registerExtension(Extension extension)
          Registers the given extension.
 void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
           
 void unregisterExtension(Extension extension)
          Unregisters the given extension.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComponent

public DefaultComponent()
Method Detail

activate

public void activate(ComponentContext context)
              throws Exception
Description copied from interface: Component
Activates the component.

This method is called by the runtime when a component is activated.

Specified by:
activate in interface Component
Parameters:
context - the runtime context
Throws:
Exception - if an error occurs during activation

deactivate

public void deactivate(ComponentContext context)
                throws Exception
Description copied from interface: Component
Deactivates the component.

This method is called by the runtime when a component is deactivated.

Specified by:
deactivate in interface Component
Parameters:
context - the runtime context
Throws:
Exception - if an error occurs during activation

registerExtension

public void registerExtension(Extension extension)
                       throws Exception
Description copied from interface: Extensible
Registers the given extension.

Specified by:
registerExtension in interface Extensible
Parameters:
extension - the extension to register
Throws:
Exception - if any error occurs

unregisterExtension

public void unregisterExtension(Extension extension)
                         throws Exception
Description copied from interface: Extensible
Unregisters the given extension.

Specified by:
unregisterExtension in interface Extensible
Parameters:
extension - the extension to unregister
Throws:
Exception - if any error occurs

registerContribution

public void registerContribution(Object contribution,
                                 String extensionPoint,
                                 ComponentInstance contributor)
                          throws Exception
Throws:
Exception

unregisterContribution

public void unregisterContribution(Object contribution,
                                   String extensionPoint,
                                   ComponentInstance contributor)
                            throws Exception
Throws:
Exception

getAdapter

public <T> T getAdapter(Class<T> adapter)
Description copied from interface: Adaptable
Returns an object which is an instance of the given class associated with this object. Returns null if no such object can be found.

Specified by:
getAdapter in interface Adaptable
Parameters:
adapter - the adapter class to look up
Returns:
a object castable to the given class, or null if this object does not have an adapter for the given class

applicationStarted

public void applicationStarted(ComponentContext context)
                        throws Exception
Description copied from interface: Component
Notify the component that Nuxeo Framework finished starting all Nuxeo bundles.

Specified by:
applicationStarted in interface Component
Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.