Package com.sun.jini.start

Examples of com.sun.jini.start.NonActivatableServiceDescriptor.create()


                trans_impl,
                new String[] { config },
    antiMercuryProxyPreparer);
        try {
            NonActivatableServiceDescriptor.Created created =
                (NonActivatableServiceDescriptor.Created)antiNonActMercuryProxy.create(
        EmptyConfiguration.INSTANCE);
      throw new TestException(
          "Created proxy: " + created.proxy
    + " with a bad trans proxy descriptor: "
    + antiNonActMercuryProxy);
View Full Code Here


                new NonActivatableServiceDescriptor(
                    codebase.replaceAll("mercury-dl.jar", "mercury-dl_bogus.jar"),
        policy, classpath, impl,
        new String[] { service_config.toString() });
  try {
      Object proxy = badCodebase.create(EmptyConfiguration.INSTANCE);
            throw new TestException(" Created proxy [" + proxy
                    + "] with bad codebase descriptor: " + badCodebase);
        } catch (ClassNotFoundException e) {
            logger.log(Level.INFO, "Expected Failure with bad codebase descriptor: "
        + badCodebase);
View Full Code Here

                new NonActivatableServiceDescriptor(
                    codebase, policy.replaceAll("policy", "bogus_policy"),
                    classpath, impl, new String[] { service_config.toString() });
           
  try {
      Object proxy = badPolicy.create(EmptyConfiguration.INSTANCE);
      throw new TestException(
       "Failed - Created proxy [" + proxy
                   + "] with bad policy descriptor: " + badPolicy);
        } catch (InvocationTargetException ce) {
            if (verifyInvocationTargetException(ce)) {
View Full Code Here

                    codebase,
                    policy,
                    classpath.replaceAll("mercury", "mercury_bogus"),
                    impl, new String[] { service_config.toString() });
  try {
      Object proxy = badClasspath.create(EmptyConfiguration.INSTANCE);
            throw new TestException( "Failed - Created proxy ["
             + proxy
             + "] with bad classpath descriptor: "
             + badClasspath);
        } catch (ClassNotFoundException e) {
View Full Code Here

                    policy,
                    classpath,
                    impl.replaceAll("Impl", "Impl_bogus"),
                    new String[] { service_config.toString() });
  try {
      Object proxy = badImpl.create(EmptyConfiguration.INSTANCE);
            throw new TestException(
              "Failed - Created proxy [" + proxy
                    + "] with bad implementation descriptor: " + badImpl);
        } catch (ClassNotFoundException e) {
            logger.log(Level.INFO, "Expected Failure with bad implementation descriptor: "
View Full Code Here

                    policy,
                    classpath,
                    impl,
                    new String[] { service_config.getParent() });
  try {
      Object proxy = badConfig.create(EmptyConfiguration.INSTANCE);
            throw new TestException(
              "Failed - Created proxy [" + proxy
                    + "] with bad configuration descriptor: " + badConfig);
        } catch (java.lang.reflect.InvocationTargetException e) {
            logger.log(Level.INFO, "Expected Failure  with bad configuration descriptor: "
View Full Code Here

      if (transformer != null) {
    desc = (NonActivatableServiceDescriptor)
           transformer.transform(desc);
      }
      try {
    Created created = (Created) desc.create(starterConfig);
    serviceList.add(created);
    return created.proxy;
      } catch (Exception e) {
    throw new RemoteException("Create failed", e);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.