|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Creator<T>
A creator is responsible for creating component instances.
Codehaus.org.
| Method Summary | |
|---|---|
T |
create(Dependency dep)
Create a component instance. |
java.lang.Class |
getType()
To get the compile time type of the instances created by this component. |
boolean |
isConcrete()
To determine if the type returned by getType() is the concrete type of the real instance. |
boolean |
isSingleton()
Determines if the component always return the same instance and has no side-effect that causes difference when called the second time. |
| Methods inherited from interface jfun.yan.Verifiable |
|---|
verify |
| Method Detail |
|---|
T create(Dependency dep)
throws IrresolveableArgumentException,
ParameterTypeMismatchException,
AmbiguousComponentResolutionException,
ComponentInstantiationException,
YanException
dep - the provider that provides all dependent data.
IrresolveableArgumentException - when any of the arguments is not resolveable.
ParameterTypeMismatchException - when any of the arguments do not match the expectec type.
AmbiguousComponentResolutionException - when resolution of any of the arguments has ambiguity.
ComponentInstantiationException - The runtime exception wrapper for any error happens
in the creation function.
ComponentException - error when resolving any of the arguments.
YanException - any error.java.lang.Class getType()
A tolerant static type checking will be performed if this function returns a non-null type.
getType in interface Typefulboolean isConcrete()
A strict static type check will be performed on concrete types.
boolean isSingleton()
This information may be useful to certain optimizations.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||