@Exported public interface FacetFactory
Facet instances.| Modifier and Type | Method and Description |
|---|---|
<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>> |
create(Class<FACET> type)
Create a new instance of the given
Facet type. |
<FACET extends Facet<E>,E extends Faceted<? extends 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<?>>> |
createFacets(Class<FACET> type)
|
<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>> |
createFacets(Class<FACET> type,
E origin)
|
<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>> |
install(Class<FACET> type,
E origin)
Create and installs a new instance of the given
Facet type. |
<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>> FACET create(Class<FACET> type) throws FacetNotFoundException
Facet type.FacetNotFoundException - if no implementation can be found.<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>> FACET create(Class<FACET> type, E origin) throws FacetNotFoundException
Facet type. If it is also an instance of MutableOrigin, then
use the given origin instance as the Facet.getOrigin().FacetNotFoundException - if no implementation can be found.<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>> Iterable<FACET> createFacets(Class<FACET> type)
<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>> Iterable<FACET> createFacets(Class<FACET> type, E origin)
Facet instances implementing the given Facet type. If it is also an instance
of MutableOrigin, then use the given origin instance as the Facet.getOrigin(). Returns an empty
Iterable if no matching implementations can be found.<FACET extends Facet<E>,E extends Faceted<? extends Facet<?>>> FACET install(Class<FACET> type, E origin) throws FacetNotFoundException
Facet type.FacetNotFoundException - if no implementation can be found.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.