Class ServiceReferenceObjectFactory

java.lang.Object
org.jboss.as.naming.ServiceReferenceObjectFactory
All Implemented Interfaces:
ObjectFactory, ServiceAwareObjectFactory
Direct Known Subclasses:
ManagedReferenceObjectFactory

public class ServiceReferenceObjectFactory extends Object implements ServiceAwareObjectFactory
Abstract object factory that allows for the creation of service references. Object factories that subclass ServiceReferenceObjectFactory can get access to the value of the service described by the reference.

If the factory state is no State#UP then the factory will block. If the state is State#START_FAILED or State#REMOVED (or the state transactions to one of these states while blocking) an exception is thrown.

Author:
Stuart Douglas, Richard Opalka