org.jboss.forge.project.services
Class FacetFactory

java.lang.Object
  extended by org.jboss.forge.project.services.FacetFactory

@Dependent
public class FacetFactory
extends Object

Responsible for instantiating Facets through CDI.

Author:
Lincoln Baxter, III

Constructor Summary
FacetFactory(javax.enterprise.inject.Instance<Facet> instances)
           
 
Method Summary
<T extends Facet>
T
getFacet(Class<T> type)
           
 Facet getFacetByName(String facetName)
           
 List<Facet> getFacets()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacetFactory

@Inject
public FacetFactory(@Any
                           javax.enterprise.inject.Instance<Facet> instances)
Method Detail

getFacets

public List<Facet> getFacets()

getFacet

public <T extends Facet> T getFacet(Class<T> type)
                         throws FacetNotFoundException
Throws:
FacetNotFoundException

getFacetByName

public Facet getFacetByName(String facetName)
                     throws FacetNotFoundException
Throws:
FacetNotFoundException


Copyright © 2011 Seam Framework. All Rights Reserved.