Forge - Parent 1.0.7-SNAPSHOT

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(FacetRegistry registry, javax.enterprise.inject.spi.BeanManager bm)
           
 
Method Summary
<T extends Facet>
T
getFacet(Class<T> type)
           
 Facet getFacetByName(String facetName)
           
 List<Facet> getFacets()
          Deprecated. Use #getFacetTypes() instead. This will be removed in a future release.
 Set<Class<? extends Facet>> getFacetTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacetFactory

@Inject
public FacetFactory(FacetRegistry registry,
                           javax.enterprise.inject.spi.BeanManager bm)
Method Detail

getFacetTypes

public Set<Class<? extends Facet>> getFacetTypes()

getFacets

public List<Facet> getFacets()
Deprecated. Use #getFacetTypes() instead. This will be removed in a future release.


getFacet

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

getFacetByName

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

Forge - Parent 1.0.7-SNAPSHOT

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.