Package java.util

Examples of java.util.Set.toArray()


                }
            }
        }
        this.urlPatterns = (Mapping[]) localUrlPatternList.toArray(new Mapping[0]);
        this.methodSets = (String[]) localMethodSetList.toArray(new String[0]);
        this.rolesAllowed = (String[]) localRolesAllowed.toArray(new String[0]);

        if (this.displayName == null)
            this.displayName = BaseAuthenticationHandler.AUTH_RESOURCES.getString(
                    "SecurityConstraint.DefaultName", "" + counter);
    }
View Full Code Here


      if (matches.size() == 0) {
         throw new CommandException("No MBean matches for query: " + query);
      }

      ObjectName[] names =
         (ObjectName[])matches.toArray(new ObjectName[matches.size()]);

      return names;
   }
}
View Full Code Here

            for (int j = 0; j < pairs.length; ++j) {
              list.add(pairs[j]);
            }
          }
        }
        data = (ObjectIDPair[]) list.toArray(new ObjectIDPair[list
            .size()]);
      } else {
        data = null;
      }
    } else {
View Full Code Here

            String[] sig = {String.class.getName(), aPolicy.getClass().getName()};
            //server.invoke(loginConfigService, "addAppConfig", args, sig);
            server.invoke(loginConfigService, "addApplicationPolicy", args, sig);
         }
         configNames = new String[names.size()];
         names.toArray(configNames);
      }
      else
      {
         //JBAS-3422: Ensure that the AuthConf is neither null nor default login-config.xml
         if( authConf== null || authConf.length() == 0)
View Full Code Here

      {
         lock.readLock().lock();
         try
         {
            Set state = getCurrentState(false);
            return state.toArray();
         }
         finally
         {
            lock.readLock().unlock();
         }
View Full Code Here

      {
         lock.readLock().lock();
         try
         {
            Set state = getCurrentState(false);
            return state.toArray(a);
         }
         finally
         {
            lock.readLock().unlock();
         }
View Full Code Here

                    OsFamily parent = families[i];
                    queue.add(parent);
                }
            }
        }
        return (OsFamily[]) allFamilies.toArray(new OsFamily[allFamilies.size()]);
    }

    private static OsFamily determineOsFamily()
    {
        // Determine the most specific OS family
View Full Code Here

                exceptions.add(ex);
            }
        }
        if (!exceptions.isEmpty())
        {
            throw new JDOUserException(LOCALISER_JDO.msg("012002"),(Throwable[])exceptions.toArray(new Throwable[exceptions.size()]));
        }

        // Let superclass close its resources
        super.close();
    }
View Full Code Here

            if (!validated)
            {
                // Why is this wrapping all exceptions into 1 single exception?
                // This needs coordinating with the test expectations in the enhancer unit tests.
                throw new JPOXUserException(LOCALISER_API.msg("019016", obj_cls.getName()),
                    (Throwable[]) errors.toArray(new Throwable[errors.size()]));
            }
        }
    }

    /**
 
View Full Code Here

                mutator.commit();
                //
                modifiedTasks.add(nextNested);
            }
        }
        run((Task[])modifiedTasks.toArray(new Task[0]));
        RecalculateTaskScheduleAlgorithm alg = new RecalculateTaskScheduleAlgorithm(this) {
            protected TaskContainmentHierarchyFacade createContainmentFacade() {
                return AdjustTaskBoundsAlgorithm.this.createContainmentFacade();
            }
        };
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.