Forge - Facets Addon API 2.0.0.Alpha3

org.jboss.forge.facets
Interface FacetFactory


@Exported
public interface FacetFactory

Responsible for instantiation of new Facet instances.

Author:
Lincoln Baxter, III

Method Summary
<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>>
FACET
create(Class<FACET> type)
          Create a new instance of the given Facet type.
<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>>
FACET
create(Class<FACET> type, E origin)
          Create a new instance of the given Facet type.
<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>>
Iterable<FACET>
createFacets(Class<FACET> type)
          Returns all the facets that implements a certain Facet type
<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>>
Iterable<FACET>
createFacets(Class<FACET> type, E origin)
          Returns all the facets that implements a certain Facet type.
 

Method Detail

create

<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>> FACET create(Class<FACET> type)
Create a new instance of the given Facet type.


create

<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>> FACET create(Class<FACET> type,
                                                                            E origin)
Create a new instance of the given Facet type. If it is also an instance of MutableOrigin, then use the given instance as the Facet.getOrigin().


createFacets

<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>> Iterable<FACET> createFacets(Class<FACET> type)
Returns all the facets that implements a certain Facet type


createFacets

<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>> Iterable<FACET> createFacets(Class<FACET> type,
                                                                                            E origin)
Returns all the facets that implements a certain Facet type. If it is also an instance of MutableOrigin, then use the given instance as the Facet.getOrigin().


Forge - Facets Addon API 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.