public class StyleGuideServiceImpl extends DefaultComponent implements StyleGuideService
| Modifier and Type | Field and Description | 
|---|---|
protected StyleGuideIconRegistry | 
iconsReg  | 
lastModified, name| 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, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderprotected StyleGuideIconRegistry iconsReg
public StyleGuideServiceImpl()
public void activate(ComponentContext context)
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution in class DefaultComponentprotected void registerIcon(IconDescriptor icon)
protected void unregisterIcon(IconDescriptor icon)
public Map<String,List<IconDescriptor>> getIconsByCat(javax.faces.context.ExternalContext ctx, String path)
StyleGuideServicegetIconsByCat in interface StyleGuideServiceprotected List<String> resolvePaths(javax.faces.context.ExternalContext ctx, String basePath)
Copyright © 2019 Nuxeo. All rights reserved.