public class StyleGuideServiceImpl extends DefaultComponent implements StyleGuideService
Constructor and Description |
---|
StyleGuideServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
Map<String,List<IconDescriptor>> |
getIconsByCat(ExternalContext ctx,
String path)
Returns a map of all icons given a path, creating descriptors from them
and putting all unknown icons in the "unknown" category.
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtension
public void activate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution
in class DefaultComponent
Exception
public Map<String,List<IconDescriptor>> getIconsByCat(ExternalContext ctx, String path)
StyleGuideService
getIconsByCat
in interface StyleGuideService
Copyright © 2013 Nuxeo SA. All Rights Reserved.