Methods Summary |
---|
public java.lang.Object | createHomeProxy()
throw new RuntimeException("NYI");
|
protected javax.ejb.EJBMetaData | getEjbMetaData()
Class remote = null;
Class home = null;
Class pkClass = Object.class;
HomeHandleImpl homeHandle = null;
EJBContainer ejbContainer = (EJBContainer)container;
Remote remoteAnnotation = (Remote)ejbContainer.resolveAnnotation(Remote.class);
if (remoteAnnotation != null)
remote = remoteAnnotation.value()[0];
RemoteHome homeAnnotation = (RemoteHome)ejbContainer.resolveAnnotation(RemoteHome.class);
if (homeAnnotation != null)
home = homeAnnotation.value();
RemoteBinding remoteBindingAnnotation = (RemoteBinding)ejbContainer.resolveAnnotation(RemoteBinding.class);
if (remoteBindingAnnotation != null)
homeHandle = new HomeHandleImpl(remoteBindingAnnotation.jndiBinding());
EJBMetaDataImpl metadata = new EJBMetaDataImpl(remote, home, pkClass, true, false, homeHandle);
return metadata;
|
protected abstract javax.ejb.Handle | getHandle()
|
protected javax.ejb.HomeHandle | getHomeHandle()
EJBContainer ejbContainer = (EJBContainer)container;
HomeHandleImpl homeHandle = null;
RemoteBinding remoteBindingAnnotation = (RemoteBinding)ejbContainer.resolveAnnotation(RemoteBinding.class);
if (remoteBindingAnnotation != null)
homeHandle = new HomeHandleImpl(ProxyFactoryHelper.getHomeJndiName(container));
return homeHandle;
|
public void | setContainer(org.jboss.ejb3.Container container)
this.container = container;
this.advisor = (Advisor) container;
|
protected void | setEjb21Objects(BaseSessionRemoteProxy proxy)
proxy.setHandle(getHandle());
proxy.setHomeHandle(getHomeHandle());
proxy.setEjbMetaData(getEjbMetaData());
|