jfun.yan
Interface Part

All Superinterfaces:
java.io.Serializable

public interface Part
extends java.io.Serializable

A Part object encapsulates creation and verification logic for any property or parameter of a component. Part is used to customize the creation of a parameters or properties without regard to the parameter orginal position or property name.

Codehaus.org.

Author:
Ben Yu

Method Summary
 java.lang.Object create(java.lang.Class type, Dependency pp)
          Creates a part instance.
 java.lang.Class verify(java.lang.Class type, Dependency pp)
          Verifies that the part can be satisfied.
 

Method Detail

create

java.lang.Object create(java.lang.Class type,
                        Dependency pp)
Creates a part instance.

Parameters:
type - the type of the part.
pp - the Dependency object used to resolve any dependency.
Returns:
the part instance.

verify

java.lang.Class verify(java.lang.Class type,
                       Dependency pp)
Verifies that the part can be satisfied.

Parameters:
type - the type of the part.
pp - the Dependency object used to resolve any dependency.
Returns:
the type of the part instance.