Package com.sun.midp.content

Examples of com.sun.midp.content.RegistryImpl$SecurityTrusted


     */
    private static RegistryImpl findRegistryImpl(String classname)
        throws ContentHandlerException
    {
        synchronized (mutex) {
            RegistryImpl impl =
                RegistryImpl.getRegistryImpl(classname, classSecurityToken);
            // Make sure there is a Registry;
            if (impl.getRegistry() == null) {
                impl.setRegistry(new Registry(impl));
            }
            return impl;
        }
    }
View Full Code Here


     *  application package
     */
    public static ContentHandlerServer getServer(String classname)
  throws ContentHandlerException
    {
  RegistryImpl registryImpl = findRegistryImpl(classname);
  // Insure only one thread promotes to ContentHandlerServer
  ContentHandlerImpl server = null;
  synchronized (mutex) {
      server = registryImpl.getServer();
      if (server == null) {
    throw new ContentHandlerException("No registered handler",
      ContentHandlerException.NO_REGISTERED_HANDLER);
      }

      if (!(server instanceof ContentHandlerServer)) {
    // Not already a ContentHandlerServer; replace
    server = new ContentHandlerServerImpl(server);
    registryImpl.setServer(server);
      }
  }
  return (ContentHandlerServer)server;
    }
View Full Code Here

TOP

Related Classes of com.sun.midp.content.RegistryImpl$SecurityTrusted

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.