MetaBoss

com.metaboss.sdlctools.services.codegeneration
Interface BSServiceProxyGenerator


public interface BSServiceProxyGenerator

This interface offers operations dealing with code generation of the service proxies layer. Proxy is a plugin mechanism, which is both implementor of the interface and user of the same interface. Using JNDI mapping configuration it is possible to "plug in" proxy code in between service client and service implementation. Such proxy for example may be used to write operations invocations log file or provide secure fence around operations. This generator should assume that service interface has been generated elsewhere and can be obtained via JNDI lookup.


Field Summary
static java.lang.String COMPONENT_URL
          Naming URL of the component
 
Method Summary
 void generateSourceCodeForService(java.lang.String pGenerationDirectoryPath, java.lang.String pServiceRef)
          Generates service proxy implementation sourcecode for the particular service within particular enterprise
 void generateSourceCodeForServicemodule(java.lang.String pGenerationDirectoryPath, java.lang.String pServiceModuleRef)
          Generates service proxy implementation sourcecode for the particular whole servciemodule within particular enterprise
 java.lang.String getPackageNameForService(java.lang.String pServiceRef)
          Returns the name of the package where proxy implementation code is generated to
 java.lang.String getPackageNameForServicemodule(java.lang.String pServicemoduleRef)
          Returns the name of the root package where proxy implementation code is generated to
 java.lang.String[] getRequiredAdapters()
           
 

Field Detail

COMPONENT_URL

public static final java.lang.String COMPONENT_URL
Naming URL of the component

See Also:
Constant Field Values
Method Detail

generateSourceCodeForService

public void generateSourceCodeForService(java.lang.String pGenerationDirectoryPath,
                                         java.lang.String pServiceRef)
                                  throws BSException
Generates service proxy implementation sourcecode for the particular service within particular enterprise

Parameters:
pGenerationDirectoryPath - directory to generate code to
pServiceRef - service to generate proxy code for
Throws:
BSException

generateSourceCodeForServicemodule

public void generateSourceCodeForServicemodule(java.lang.String pGenerationDirectoryPath,
                                               java.lang.String pServiceModuleRef)
                                        throws BSException
Generates service proxy implementation sourcecode for the particular whole servciemodule within particular enterprise

Parameters:
pGenerationDirectoryPath - directory to generate code to
Throws:
BSException

getPackageNameForService

public java.lang.String getPackageNameForService(java.lang.String pServiceRef)
                                          throws BSException
Returns the name of the package where proxy implementation code is generated to

Parameters:
pServiceRef - service the proxy associated with
Throws:
BSException

getPackageNameForServicemodule

public java.lang.String getPackageNameForServicemodule(java.lang.String pServicemoduleRef)
                                                throws BSException
Returns the name of the root package where proxy implementation code is generated to

Parameters:
pServicemoduleRef - service the proxy associated with
Throws:
BSException

getRequiredAdapters

public java.lang.String[] getRequiredAdapters()
                                       throws BSException
Returns:
array of names of adapters, which are required by this adapter, may be null or zero length array if this proxy generator is not relying on any adapter.
Throws:
BSException

MetaBoss

Copyright © 2000-2005 Softaris Pty.Ltd. All Rights Reserved.