|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.Component
jfun.yan.DelegatingComponent
public abstract class DelegatingComponent
Base class for delegating Component object. It forwards all method call to the delegated Component object, which makes it handy for customizing a Component object by subclassing.
Codehaus.org.
| Constructor Summary | |
|---|---|
DelegatingComponent(Component cc)
Create a new DelegatingComponent object. |
|
| Method Summary | |
|---|---|
java.lang.Object |
create(Dependency dep)
Create a component instance. |
boolean |
equals(java.lang.Object other)
|
protected Component |
getDelegateTarget()
Gets the Component object being delegated. |
java.lang.Object |
getState()
Gets the user state of this component. |
java.lang.Class |
getType()
Get the type of instances that this component is responsible to create. |
int |
hashCode()
|
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. |
java.lang.String |
toString()
|
java.lang.Class |
verify(Dependency dep)
Verifies that the component's dependencies are satisfiable. |
| Methods inherited from class jfun.yan.Component |
|---|
bean, bean, bean, bind, bind, bindArgument, bindArguments, bindProperties, bindProperty, cast, factory, factory, factory, factory, factory, field, field, field, followedBy, followedBy, followedBy, fromArguments, fromProperties, getter, getter, guard, ifelse, ignoreProperty, incomplete, label, label, map, method, method, method, method, method, mutate, option, optional, optionalParameter, optionalParameters, optionalProperties, optionalProperty, proxy, proxy, proxy, recover, repeat, seal, seq, setter, setter, singleton, singleton, subsume, synchronize, withArgument, withArgument, withArguments, withArguments, withDefaultArgument, withDefaultProperty, withProperties, withProperties, withProperties, withProperty, withProperty, withState |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingComponent(Component cc)
cc - the Component object to delegate.| Method Detail |
|---|
public boolean isConcrete()
CreatorA strict static type check will be performed on concrete types.
public boolean isSingleton()
CreatorThis information may be useful to certain optimizations.
public java.lang.Object getState()
Component
getState in interface StatefulgetState in class Componentpublic java.lang.Object create(Dependency dep)
Creator
dep - the provider that provides all dependent data.
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.Class getType()
Component
getType in interface CreatorgetType in interface TypefulgetType in class Componentpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Class verify(Dependency dep)
Verifiable
dep - the provider that provides all dependent information.protected final Component getDelegateTarget()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||