All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.marschall.osgi.remoting.ejb.api.InitialContextService Maven / Gradle / Ivy

The newest version!
package com.github.marschall.osgi.remoting.ejb.api;

import java.util.Hashtable;
import java.util.Set;

/**
 * 
 * 

* This has to be implemented by every client bridge (JBoss, GlassFish, ...) * and be registered before osgi-remoting-ejb-client is started * (eg. Dynamic Services / Service Component Runtime). */ public interface InitialContextService { // TODO identifier (eg. jboss) is a service property /** * Returns the environment used to create the initial context. * *

* If {@code null} is returned then * {@link javax.naming.InitialContext#InitialContext()} is invoked. * * @see javax.naming.InitialContext * @return the environment used to create the initial context */ public Hashtable getEnvironment(); /** * Returns the symbolic names of the bundles that have to be added to the * class loader of each client bundle. * *

* This contains the classes need by the ejb client library (eg. jboss-remoting), * not the classes need by the client bundle. Those should be dealt with by the * manifest of the client bundle. * * @return symbolic names of the bundles that have to be added to the * class loader of each client bundle */ // TODO add option to add version (range) public Set getClientBundleSymbolicNames(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy