|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lonniepryor.blues.cfg.AbstractBeanCfg | +--com.lonniepryor.blues.cfg.ServiceCfgImpl
Generic implementation of ServiceCfg
.
Nested Class Summary | |
static class |
ServiceCfgImpl.IntroduceCfg
Child element for introducing interfaces. |
Field Summary |
Fields inherited from interface com.lonniepryor.blues.cfg.ServiceCfg |
validServiceTypes |
Constructor Summary | |
ServiceCfgImpl()
Creates a new ServiceCfgImpl object. |
Method Summary | |
void |
configure(java.lang.Object serviceInstance,
Directory serviceDirectory)
Configures an instance of the service type. |
void |
declareIntroduce(ServiceCfgImpl.IntroduceCfg introducton)
Declares an introduced interface on this service. |
java.lang.Class[] |
getIntroducedInterfaces()
Returns all of the interfaces that will be introduced to the service type. |
java.lang.String |
getName()
Returns the name of this service. |
java.lang.Class |
getServiceType()
Return the type used to implement the service. |
void |
setClass(java.lang.Class serviceType)
Sets the type used to implement the service. |
void |
setName(java.lang.String name)
Sets the name of this service. |
void |
verify()
Verifies the state of this configuration element. |
Methods inherited from class com.lonniepryor.blues.cfg.AbstractBeanCfg |
configureBean, configureBean, declareSetBean, declareSetRefrence, declareSetValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServiceCfgImpl()
Method Detail |
public void setName(java.lang.String name)
name
- The name of this service.public void setClass(java.lang.Class serviceType)
serviceType
- The type used to implement the service.public void declareIntroduce(ServiceCfgImpl.IntroduceCfg introducton)
introducton
- The introducton configuration.public void verify()
Verifiable
verify
in interface Verifiable
public java.lang.String getName()
ServiceCfg
getName
in interface ServiceCfg
public java.lang.Class getServiceType()
ServiceCfg
getServiceType
in interface ServiceCfg
public java.lang.Class[] getIntroducedInterfaces()
ServiceCfg
getIntroducedInterfaces
in interface ServiceCfg
public void configure(java.lang.Object serviceInstance, Directory serviceDirectory)
ServiceCfg
configure
in interface ServiceCfg
serviceInstance
- The instance of the service type to coinfigure.serviceDirectory
- The directory to look up refrenced services in.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |