com.day.cq.wcm.core.impl.components
Class VirtualComponentImpl

java.lang.Object
  extended by org.apache.sling.adapter.SlingAdaptable
      extended by com.day.cq.wcm.core.impl.components.ComponentImpl
          extended by com.day.cq.wcm.core.impl.components.VirtualComponentImpl
All Implemented Interfaces:
LabeledResource, Component, VirtualComponent, org.apache.sling.api.adapter.Adaptable

public class VirtualComponentImpl
extends ComponentImpl
implements VirtualComponent

Implements a virtual component that is 'stored' in the repository


Field Summary
 
Fields inherited from class com.day.cq.wcm.core.impl.components.ComponentImpl
base
 
Constructor Summary
VirtualComponentImpl(org.apache.sling.api.resource.Resource resource, ComponentImpl component, SystemComponent base)
          Creates a virtual Component
 
Method Summary
 Component getComponent()
          Returns the real component.
 
Methods inherited from class com.day.cq.wcm.core.impl.components.ComponentImpl
adaptTo, getCellName, getChildEditConfig, getComponentGroup, getDeclaredChildEditConfig, getDeclaredEditConfig, getDescription, getDesignDialogPath, getDesignEditConfig, getDialogPath, getEditConfig, getHtmlTagAttributes, getIconPath, getLocalResource, getName, getPath, getProperties, getResourceType, getSuperComponent, getThumbnailPath, getTitle, getVirtualComponents, isContainer, isDesignable, isEditable, noDecoration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.day.cq.wcm.api.components.Component
getCellName, getChildEditConfig, getComponentGroup, getDeclaredChildEditConfig, getDeclaredEditConfig, getDesignDialogPath, getDesignEditConfig, getDialogPath, getEditConfig, getHtmlTagAttributes, getIconPath, getLocalResource, getProperties, getResourceType, getSuperComponent, getThumbnailPath, getVirtualComponents, isContainer, isDesignable, isEditable, noDecoration
 
Methods inherited from interface org.apache.sling.api.adapter.Adaptable
adaptTo
 
Methods inherited from interface com.day.cq.commons.LabeledResource
getDescription, getName, getPath, getTitle
 

Constructor Detail

VirtualComponentImpl

public VirtualComponentImpl(org.apache.sling.api.resource.Resource resource,
                            ComponentImpl component,
                            SystemComponent base)
                     throws RepositoryException
Creates a virtual Component

Parameters:
component - the real component
resource - resource of which the component is created
Throws:
RepositoryException - if a repository error occurs
Method Detail

getComponent

public Component getComponent()
Returns the real component.

Specified by:
getComponent in interface VirtualComponent
Returns:
the real component.


Copyright © 2008 Day Management AG. All Rights Reserved.