[
https://issues.jboss.org/browse/FORGE-1204?page=com.atlassian.jira.plugin...
]
Lincoln Baxter III closed FORGE-1204.
-------------------------------------
Resolution: Rejected
ResourceFactory can't be retrieve from registry
-----------------------------------------------
Key: FORGE-1204
URL:
https://issues.jboss.org/browse/FORGE-1204
Project: Forge
Issue Type: Feature Request
Components: Addon Manager
Affects Versions: 2.0.0.Alpha12
Environment: Mac OSX Java 1.7.0_40
Reporter: Robb Greathouse
ResourceFactory resourceFactory = ((ResourceFactory)
registry.getExportedTypes(ResourceFactory.class));
No longer returns a ResourceFactory. Instead it returns an empty Hashset. This code is
used to create a DirectoryResource.
ResourceFactory resourceFactory = ((ResourceFactory)
registry.getExportedTypes(ResourceFactory.class));
ProjectFactory projectFactory = (ProjectFactory)
registry.getExportedTypes(ProjectFactory.class);
FacetFactory facetFactory = (FacetFactory)
registry.getExportedTypes(FacetFactory.class);
DirectoryResource dr = resourceFactory.create(DirectoryResource.class, forgeOutput);
DirectoryResource projectDir = dr.getChildDirectory(archive.getName());
projectDir.mkdir();
List<Class<JavaSourceFacet>> facetsToInstall = Arrays
.asList(JavaSourceFacet.class);
Project project = projectFactory.createProject(projectDir);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira