|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.griffante.glue.controller.XmlServiceFactory
public class XmlServiceFactory
Essa classe implementa a interface ServiceFactory e
com ela e possivel carregar objetos do tipo Service
a partir do arquivo padrao de configuracao, o config.xml.
...
<services description="service description" >
...
<service name="project" path="org.myapp.MyService"/>
<service name="..." path="..."/>
...
</services>
<busrules description="regras de negocio para a aplicacao" >
... <!-- declaracao das business rules -->
... <!-- declaracao das business rules -->
...
</busrules>
| Method Summary | |
|---|---|
static XmlServiceFactory |
getInstance()
Metodo estatico que retorna uma instancia de XmlServiceFactory. |
Service |
getService(java.lang.String key)
Retorna uma implementacao de Service para a camada
de negocio referente ao que esta especificado no arquivo de
configuracao. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static XmlServiceFactory getInstance()
XmlServiceFactory.
public Service getService(java.lang.String key)
throws ServiceException
Service para a camada
de negocio referente ao que esta especificado no arquivo de
configuracao.
getService in interface ServiceFactorykey - Alvo a ser buscado no XML de configuracao.
Service.
ServiceException - Caso haja algum problema na leitura e/ou parser do arquivo.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||