| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Specializer
Constructs specialized instances of a composite using its components. The specialized instance is constructed by gathering all the components of the original composite that are of the designated specialization type. The specialized instance may be a subtype of the original composite.
| Method Summary | |
|---|---|
 boolean | 
isSpecializable(java.lang.Object composite,
                java.lang.Class specializedType)
Determines whether the components in the composite can be used to create a specialized version of the composite that implements specializedType. | 
 java.lang.Object | 
specialize(java.lang.Object composite,
           java.lang.Class specializedType)
Uses the components in the composite to create a composite that implements specializedType and is composed only 
 those | 
| Method Detail | 
|---|
boolean isSpecializable(java.lang.Object composite,
                        java.lang.Class specializedType)
                        throws SpecializationException
specializedType.
composite - the composite from which the components will be extractedspecializedType - the type to be exposed
SpecializationException - if the new, specialized, composite could not be created
java.lang.Object specialize(java.lang.Object composite,
                            java.lang.Class specializedType)
                            throws SpecializationException
specializedType and is composed only 
 those
composite - the composite from which the components will be extractedspecializedType - the type to be exposed
SpecializationException - if the new, specialized, composite could not be created
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||