org.jboss.forge.project.services
Class FacetFactory
java.lang.Object
org.jboss.forge.project.services.FacetFactory
@Dependent
public class FacetFactory
- extends Object
Responsible for instantiating Facet
s through CDI.
- Author:
- Lincoln Baxter, III
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FacetFactory
@Inject
public FacetFactory(FacetRegistry registry,
javax.enterprise.inject.spi.BeanManager bm)
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
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.