@Override
    public String[] getresources() {
        ArrayList<String> resources = new ArrayList<String>();
        List<ResourceType> allResourceTypes = Arrays.asList(J2EEManagementObjectNameFactory.ResourceType.values());

        // Add all J2EEResources MBeans
        for (ResourceType resourceType : allResourceTypes) {
            resources.addAll(MBeanServerHelper.queryObjectName(
                            createPropertyPatternObjectName(resourceType.name())));
        }

        return resources.toArray(new String[resources.size()]);
    }
@ Override public String [ ] getresources ( ) { ArrayList < String > resources = new ArrayList < String > ( ) ; List < ResourceType > allResourceTypes = Arrays . asList ( J2EEManagementObjectNameFactory . ResourceType . values ( ) ) ; for ( ResourceType resourceType : allResourceTypes ) { resources . addAll ( MBeanServerHelper . queryObjectName ( createPropertyPatternObjectName ( resourceType . name ( ) ) ) ) ; } return resources . toArray ( new String [ resources . size ( ) ] ) ; }
{@inheritDoc}