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) |
deactivate, getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
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 © 2018 Nuxeo. All rights reserved.