org.opennms.core.soa.support
Class ReferenceFactoryBean<T>

java.lang.Object
  extended by org.opennms.core.soa.support.ReferenceFactoryBean<T>
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.InitializingBean

public class ReferenceFactoryBean<T>
extends Object
implements org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.InitializingBean

ReferenceFactoryBean

Version:
$Id: $
Author:
brozow

Constructor Summary
ReferenceFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
          afterPropertiesSet
 T getObject()
          getObject
 Class<?> getObjectType()
          getObjectType
 boolean isSingleton()
          isSingleton
 void setFilter(String filter)
          setServiceInterface
 void setServiceInterface(Class<T> serviceInterface)
          setServiceInterface
 void setServiceRegistry(ServiceRegistry serviceRegistry)
          setServiceRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceFactoryBean

public ReferenceFactoryBean()
Method Detail

setServiceRegistry

public void setServiceRegistry(ServiceRegistry serviceRegistry)

setServiceRegistry

Parameters:
serviceRegistry - a ServiceRegistry object.

setServiceInterface

public void setServiceInterface(Class<T> serviceInterface)

setServiceInterface

Parameters:
serviceInterface - a Class object.

setFilter

public void setFilter(String filter)

setServiceInterface

Parameters:
serviceInterface - a Class object.

getObject

public T getObject()
            throws Exception

getObject

Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<T>
Returns:
a Object object.
Throws:
Exception - if any.

getObjectType

public Class<?> getObjectType()

getObjectType

Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<T>
Returns:
a Class object.

isSingleton

public boolean isSingleton()

isSingleton

Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<T>
Returns:
a boolean.

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception

afterPropertiesSet

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception - if any.


Copyright © 2011. All Rights Reserved.