|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.service.StoreRedirectorProxyFactory
public class StoreRedirectorProxyFactory
This factory provides component redirection based on Store or Node References passed into the component. Redirection is driven by StoreRef and NodeRef parameters. If none are given in the method call, the default component is called. Otherwise, the store type is extracted from these parameters and the appropriate component called for the store type. An error is thrown if multiple store types are found.
Constructor Summary | |
---|---|
StoreRedirectorProxyFactory()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
java.lang.Object |
getObject()
|
java.lang.Class |
getObjectType()
|
boolean |
isSingleton()
|
void |
setDefaultBinding(java.lang.Object defaultBinding)
Sets the default component binding |
void |
setProxyInterface(java.lang.Class proxyInterface)
Sets the proxy interface |
void |
setRedirectedProtocolBindings(java.util.Map protocolBindings)
Sets the binding of store type (protocol string) to component |
void |
setRedirectedStoreBindings(java.util.Map storeBindings)
Sets the binding of store type (protocol string) to component |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoreRedirectorProxyFactory()
Method Detail |
---|
public void setProxyInterface(java.lang.Class proxyInterface)
proxyInterface
- the proxy interfacepublic void setDefaultBinding(java.lang.Object defaultBinding)
binding
- the component to call by defaultpublic void setRedirectedProtocolBindings(java.util.Map protocolBindings)
bindings
- the bindingspublic void setRedirectedStoreBindings(java.util.Map storeBindings)
bindings
- the bindingspublic void afterPropertiesSet() throws ServiceException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
ServiceException
public java.lang.Object getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean
public java.lang.Class getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |