public class StyleGuideServiceImpl extends DefaultComponent implements StyleGuideService
Modifier and Type | Field and Description |
---|---|
protected StyleGuideIconRegistry |
iconsReg |
lastModified
Constructor and Description |
---|
StyleGuideServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
Map<String,List<IconDescriptor>> |
getIconsByCat(javax.faces.context.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) |
protected void |
registerIcon(IconDescriptor icon) |
protected List<String> |
resolvePaths(javax.faces.context.ExternalContext ctx,
String basePath) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
protected void |
unregisterIcon(IconDescriptor icon) |
applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtension
protected StyleGuideIconRegistry iconsReg
public StyleGuideServiceImpl()
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
protected void registerIcon(IconDescriptor icon)
protected void unregisterIcon(IconDescriptor icon)
public Map<String,List<IconDescriptor>> getIconsByCat(javax.faces.context.ExternalContext ctx, String path)
StyleGuideService
getIconsByCat
in interface StyleGuideService
protected List<String> resolvePaths(javax.faces.context.ExternalContext ctx, String basePath)
Copyright © 2015 Nuxeo SA. All rights reserved.