org.glassfish.api.naming
Interface NamingObjectProxy

All Known Subinterfaces:
NamingObjectProxy.InitializationNamingObjectProxy

@Contract
public interface NamingObjectProxy

A proxy object that can be bound to GlassfishNamingManager. Concrete implementation of this contract will take appropriate action when the proxy is lookedup. Typically, this can be used to lazily instantiate an Object at lookup time than at bind time. Again, it is upto the implementation to cache the result (inside the proxy implementation so that subsequent lookup can obtain the same cacheed object. Or the implementation can choose to return different object every time.

Author:
Mahesh Kannan

Nested Class Summary
static interface NamingObjectProxy.InitializationNamingObjectProxy
          Special Naming Object proxy whose first create() call replaces itself in naming service.
 
Method Summary
 java.lang.Object create(javax.naming.Context ic)
          Create and return an object.
 

Method Detail

create

java.lang.Object create(javax.naming.Context ic)
                        throws javax.naming.NamingException
Create and return an object.

Returns:
an object
Throws:
javax.naming.NamingException


Copyright © 2012 GlassFish Community. All Rights Reserved.