net.sourceforge.jfacets.impl
Class MetaFacetDescriptorManager

java.lang.Object
  extended by net.sourceforge.jfacets.impl.MetaFacetDescriptorManager
All Implemented Interfaces:
IFacetDescriptorManager

public class MetaFacetDescriptorManager
extends java.lang.Object
implements IFacetDescriptorManager

The MetaFacetDescriptorManager : encapsulates several facet descriptor managers in a single one, allowing to use different facet types if required (e.g. GroovyFacets + "regular" facets).
Descriptors for registered managers are pre-loaded by the MetaFacetDescriptorManager at start-up time.


Constructor Summary
MetaFacetDescriptorManager()
           
 
Method Summary
protected  java.util.List<FacetDescriptor> concatAll()
           
 FacetDescriptor getDescriptor(java.lang.String name, java.lang.String profileId, java.lang.Class targetObjectType)
          Return the descriptor sctrictly associated to passed params if any, null of not found.
 FacetDescriptor[] getDescriptors()
          Return all descriptors in an array.
 java.util.List<IFacetDescriptorManager> getManagers()
          return the managers to be used for descriptor lookup
 void setManagers(java.util.List<IFacetDescriptorManager> managers)
          set the managers to be used for descriptor lookup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaFacetDescriptorManager

public MetaFacetDescriptorManager()
Method Detail

concatAll

protected java.util.List<FacetDescriptor> concatAll()

getDescriptor

public FacetDescriptor getDescriptor(java.lang.String name,
                                     java.lang.String profileId,
                                     java.lang.Class targetObjectType)
Return the descriptor sctrictly associated to passed params if any, null of not found.

Specified by:
getDescriptor in interface IFacetDescriptorManager

getDescriptors

public FacetDescriptor[] getDescriptors()
Return all descriptors in an array.

Specified by:
getDescriptors in interface IFacetDescriptorManager

getManagers

public java.util.List<IFacetDescriptorManager> getManagers()
return the managers to be used for descriptor lookup


setManagers

public void setManagers(java.util.List<IFacetDescriptorManager> managers)
set the managers to be used for descriptor lookup



Copyright © 2011. All Rights Reserved.