ColdSpring 2.0 - Narwhal

coldspring.aop.framework
Class RemoteFactoryBean

WEB-INF.cftags.component
        extended by coldspring.aop.framework.ProxyFactoryBean
            extended by coldspring.aop.framework.RemoteFactoryBean
All Implemented Interfaces:
BeanFactoryAware , BeanNameAware , FactoryBean

public class RemoteFactoryBean
extends ProxyFactoryBean

Constructor Summary
init()
          Constructor
 
Method Summary
 void buildRemoteProxy()
          builds the remote proxy and puts it in place
 boolean checkTrustedSource()
          If the source is trusted, checks to see if the file is there or not
 string getAbsolutePath()
          Get the absolute path to the directory that the Service Remote Proxy is generated to
 array getAddMissingMethods()
          List of non-existent methods that are to be implemented as remote methods on the remote facade
 string getBeanFactoryName()
          Get the bame of the bean factory to be used in the application scope
private string getBeanName()
 any getObject()
          Returns a proxy if there are interceptorNames applied
 array getRemoteMethodNames()
          Get the remote names to expose on the remote proxy
 string getServiceName()
          Get the name of the CFC that is generated as the remote facade
private boolean isProxyGenerated()
 boolean isTrustedSource()
          Whether or not the remote proxy should be re-generated if it already exists
 void setAbsolutePath(string absolutePath)
          Set the absolute path to the directory that the Service Remote Proxy will be generated to
 void setAddMissingMethods(any addMissingMethods)
          List of non-existent methods that are to be implemented as remote methods on the remote facade
 void setBeanFactoryName(string beanFactoryName)
          Set the bame of the bean factory to be used in the application scope
 void setBeanName(string name)
          set the bean name as it is stored in the BeanFactory
private void setProxyGenerated(boolean isProxyGenerated)
 void setRelativePath(string relativePath)
          Set the relative path to the directory that the Service Remote Proxy will be generated to
 void setRemoteMethodNames(any remoteMethodNames)
          Set the remote names to expose on the remote proxy
 void setServiceName(string serviceName)
          Set the name of the CFC that will be generated as the Remote Proxy
 void setTrustedSource(boolean trustedSource)
          Set whether or not the remote proxy should be re-generated if it already exists
 
Methods inherited from class coldspring.aop.framework.ProxyFactoryBean
buildInterceptors, getBeanFactory, getInterceptorNames, getObjectType, getProxyFactory, getProxySingleton, getTarget, getTargetName, hasBeanFactory, hasInterceptorNames, hasProxySingleton, hasTarget, hasTargetName, isInterceptorsBuilt, isSingleton, setBeanFactory, setInterceptorNames, setInterceptorsBuilt, setProxyFactory, setProxySingleton, setSingleton, setTarget, setTargetName
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init()
Constructor

Method Detail

buildRemoteProxy

public void buildRemoteProxy()
builds the remote proxy and puts it in place


checkTrustedSource

public boolean checkTrustedSource()
If the source is trusted, checks to see if the file is there or not


getAbsolutePath

public string getAbsolutePath()
Get the absolute path to the directory that the Service Remote Proxy is generated to.


getAddMissingMethods

public array getAddMissingMethods()
List of non-existent methods that are to be implemented as remote methods on the remote facade


getBeanFactoryName

public string getBeanFactoryName()
Get the bame of the bean factory to be used in the application scope.


getBeanName

private string getBeanName()


getObject

public any getObject()
Returns a proxy if there are interceptorNames applied. Otherwise, this returns the target object.

Overrides:
getObject in class ProxyFactoryBean

getRemoteMethodNames

public array getRemoteMethodNames()
Get the remote names to expose on the remote proxy.


getServiceName

public string getServiceName()
Get the name of the CFC that is generated as the remote facade.


isProxyGenerated

private boolean isProxyGenerated()


isTrustedSource

public boolean isTrustedSource()
Whether or not the remote proxy should be re-generated if it already exists.


setAbsolutePath

public void setAbsolutePath(string absolutePath)
Set the absolute path to the directory that the Service Remote Proxy will be generated to.

Parameters:
absolutePath -

setAddMissingMethods

public void setAddMissingMethods(any addMissingMethods)
List of non-existent methods that are to be implemented as remote methods on the remote facade

Parameters:
addMissingMethods - List or array of method names

setBeanFactoryName

public void setBeanFactoryName(string beanFactoryName)
Set the bame of the bean factory to be used in the application scope.

Parameters:
beanFactoryName - The key used for the bean factory in the application scope

setBeanName

public void setBeanName(string name)
set the bean name as it is stored in the BeanFactory.

Specified by:
setBeanName in interface BeanNameAware
Parameters:
name -

setProxyGenerated

private void setProxyGenerated(boolean isProxyGenerated)

Parameters:
isProxyGenerated -

setRelativePath

public void setRelativePath(string relativePath)
Set the relative path to the directory that the Service Remote Proxy will be generated to. Automatically populates the absolute path with expandpath()

Parameters:
relativePath -

setRemoteMethodNames

public void setRemoteMethodNames(any remoteMethodNames)
Set the remote names to expose on the remote proxy.

Parameters:
remoteMethodNames - List or array of the method names that need to be applied to the remote proxy

setServiceName

public void setServiceName(string serviceName)
Set the name of the CFC that will be generated as the Remote Proxy.

Parameters:
serviceName -

setTrustedSource

public void setTrustedSource(boolean trustedSource)
Set whether or not the remote proxy should be re-generated if it already exists. Defaults to false (always regenerate).

Parameters:
trustedSource -

ColdSpring 2.0 - Narwhal